implement service worker events

This commit is contained in:
Sebastian Velez
2023-01-20 13:23:52 -05:00
parent 017fc7f92f
commit e018b53f55
4 changed files with 71 additions and 0 deletions

View File

@@ -1,5 +1,15 @@
import config from './config';
jest.mock('webextension-polyfill', () => {
return {
runtime: {
getManifest: () => {
return { version: 'test-version' };
},
},
};
});
describe('wakatime config', () => {
it('snapshot of config', () => {
expect(config).toMatchInlineSnapshot(`