diff options
author | Sebastian <sebasjm@gmail.com> | 2022-06-05 23:41:07 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-06-05 23:41:07 -0300 |
commit | 1c1384d7c8193aa17375e630a960644f669d2b48 (patch) | |
tree | 42016d7a83dcce85e529412cf24403fec116a9e3 /packages/anastasis-webui/tests | |
parent | 3b4f873a6be7f7f2632473a94db09220c2f3c7b5 (diff) |
remove old files
Diffstat (limited to 'packages/anastasis-webui/tests')
4 files changed, 0 insertions, 33 deletions
diff --git a/packages/anastasis-webui/tests/__mocks__/browserMocks.ts b/packages/anastasis-webui/tests/__mocks__/browserMocks.ts deleted file mode 100644 index 5be8c3ce6..000000000 --- a/packages/anastasis-webui/tests/__mocks__/browserMocks.ts +++ /dev/null @@ -1,21 +0,0 @@ -// Mock Browser API's which are not supported by JSDOM, e.g. ServiceWorker, LocalStorage -/** - * An example how to mock localStorage is given below 👇 - */ - -/* -// Mocks localStorage -const localStorageMock = (function() { - let store = {}; - - return { - getItem: (key) => store[key] || null, - setItem: (key, value) => store[key] = value.toString(), - clear: () => store = {} - }; - -})(); - -Object.defineProperty(window, 'localStorage', { - value: localStorageMock -}); */ diff --git a/packages/anastasis-webui/tests/__mocks__/fileMocks.ts b/packages/anastasis-webui/tests/__mocks__/fileMocks.ts deleted file mode 100644 index 87109e355..000000000 --- a/packages/anastasis-webui/tests/__mocks__/fileMocks.ts +++ /dev/null @@ -1,3 +0,0 @@ -// This fixed an error related to the CSS and loading gif breaking my Jest test -// See https://facebook.github.io/jest/docs/en/webpack.html#handling-static-assets -export default 'test-file-stub'; diff --git a/packages/anastasis-webui/tests/__mocks__/setupTests.ts b/packages/anastasis-webui/tests/__mocks__/setupTests.ts deleted file mode 100644 index 01dc92a29..000000000 --- a/packages/anastasis-webui/tests/__mocks__/setupTests.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { configure } from 'enzyme'; -import Adapter from 'enzyme-adapter-preact-pure'; - -configure({ - adapter: new Adapter() -}); diff --git a/packages/anastasis-webui/tests/declarations.d.ts b/packages/anastasis-webui/tests/declarations.d.ts deleted file mode 100644 index 67e940277..000000000 --- a/packages/anastasis-webui/tests/declarations.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// Enable enzyme adapter's integration with TypeScript -// See: https://github.com/preactjs/enzyme-adapter-preact-pure#usage-with-typescript -/// <reference types="enzyme-adapter-preact-pure" /> |