forked from Github/frigate
feat(web): detect, clips, snapshots toggles
This commit is contained in:
committed by
Blake Blackshear
parent
e399790442
commit
b6ba6459fb
@@ -15,10 +15,4 @@ Object.defineProperty(window, 'matchMedia', {
|
||||
|
||||
window.fetch = () => Promise.resolve();
|
||||
|
||||
beforeEach(() => {
|
||||
jest.spyOn(window, 'fetch').mockImplementation(async (url, opts = {}) => {
|
||||
throw new Error(`Unexpected fetch to ${url}, ${JSON.stringify(opts)}`);
|
||||
});
|
||||
});
|
||||
|
||||
jest.mock('../src/env');
|
||||
|
||||
Reference in New Issue
Block a user