mirror of
https://github.com/koloml/philomena-tagging-assistant.git
synced 2026-05-09 15:12:21 +00:00
Added initial implementation of mocks for chrome StorageArea, adding first tests for storage helper
This commit is contained in:
9
tests/mocks/ChromeEvent.ts
Normal file
9
tests/mocks/ChromeEvent.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export default class ChromeEvent<T extends Function> implements chrome.events.Event<T> {
|
||||
addListener = vi.fn();
|
||||
getRules = vi.fn();
|
||||
hasListener = vi.fn();
|
||||
removeRules = vi.fn();
|
||||
addRules = vi.fn();
|
||||
removeListener = vi.fn();
|
||||
hasListeners = vi.fn();
|
||||
}
|
||||
Reference in New Issue
Block a user