diff --git a/src/packages/apply-console-proxy/apply-console-proxy.test.ts b/src/packages/apply-console-proxy/apply-console-proxy.test.ts new file mode 100644 index 0000000..3fd7d14 --- /dev/null +++ b/src/packages/apply-console-proxy/apply-console-proxy.test.ts @@ -0,0 +1,20 @@ +import applyConsoleProxy from './'; + +const options = { + log: true, + warn: true, + error: true, + clicks: true, + cookies: true, + localStorage: true, + sessionStorage: true, + clearOnReload: true, + ignoreScriptErrors: true, + plugins: [] +} + +describe('Apply Console Proxy', () => { + it('should return undefined', () => { + expect(applyConsoleProxy(options)).toBeUndefined(); + }); +}); diff --git a/src/packages/clear-store/clear-store.test.ts b/src/packages/clear-store/clear-store.test.ts new file mode 100644 index 0000000..53b0b2d --- /dev/null +++ b/src/packages/clear-store/clear-store.test.ts @@ -0,0 +1,7 @@ +import clearStore from './'; + +describe('Clear Store', () => { + it('should clear localStorage', () => { + expect(clearStore).toBeUndefined(); + }); +}); diff --git a/src/packages/default-feature-toggle-store/default-feature-toogle-store.test.ts b/src/packages/default-feature-toggle-store/default-feature-toogle-store.test.ts new file mode 100644 index 0000000..301f7f8 --- /dev/null +++ b/src/packages/default-feature-toggle-store/default-feature-toogle-store.test.ts @@ -0,0 +1,15 @@ +import defaultFeatureToggleStore from './'; + +describe('Default Feature Toogle Store', () => { + it('should Features.CONSOLE_LISTENER return false', () => { + expect(defaultFeatureToggleStore['perry::feature::consolelistener']).toBe(false) + }) + + it('should Features.DOCUMENT_CLICK_LISTENER return false', () => { + expect(defaultFeatureToggleStore['perry::feature::documentclicklistener']).toBe(false) + }) + + it('should Features.WINDOW_ERROR_LISTENER return false', () => { + expect(defaultFeatureToggleStore['perry::feature::windowerrorlistener']).toBe(false) + }) +}) \ No newline at end of file