Skip to content

Commit

Permalink
fix: unit test because of version change
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisERo committed Dec 3, 2023
1 parent dbb3e65 commit ad82274
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/background-scripts/indexed-db-nv-storage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,21 @@ class MockLocalStorage implements chrome.storage.LocalStorageArea {
private storage: {[key: string]: any};
QUOTA_BYTES: number;

onChanged: chrome.storage.StorageAreaChangedEvent;

constructor() {
this.storage = {};
this.QUOTA_BYTES = -1;
this.onChanged = {} as chrome.storage.StorageAreaChangedEvent;
}
setAccessLevel(accessOptions: { accessLevel: "TRUSTED_AND_UNTRUSTED_CONTEXTS" | "TRUSTED_CONTEXTS"; }): Promise<void>;
setAccessLevel(accessOptions: { accessLevel: "TRUSTED_AND_UNTRUSTED_CONTEXTS" | "TRUSTED_CONTEXTS"; }, callback: () => void): void;
setAccessLevel(accessOptions: unknown, callback?: unknown): void | Promise<void> {
throw new Error("Method not implemented.");
}



getBytesInUse(callback: (bytesInUse: number) => void): void;
getBytesInUse(keys?: string | string[] | null | undefined): Promise<number>;
getBytesInUse(keys: string | string[] | null, callback: (bytesInUse: number) => void): void;
Expand Down

0 comments on commit ad82274

Please sign in to comment.