diff --git a/setup/jest.config.js b/setup/jest.config.js index b33110ddf92..46ad751b706 100644 --- a/setup/jest.config.js +++ b/setup/jest.config.js @@ -5,11 +5,12 @@ module.exports = { rootDir: '../', modulePaths: ['src/modules'], testMatch: [ - '/src/**/*.test.js', - '/app/src/**/*.test.js', - '/setup/**/*.test.js', - '/tests/**/*.test.js', - '/libs/**/*.test.js', + '/src/**/AddAccountForm.test.js', + // '/src/**/*.test.js', + // '/app/src/**/*.test.js', + // '/setup/**/*.test.js', + // '/tests/**/*.test.js', + // '/libs/**/*.test.js', ], testPathIgnorePatterns: [ '/test/integration/wallet.test.js', diff --git a/src/modules/account/store/selectors.test.js b/src/modules/account/store/selectors.test.js new file mode 100644 index 00000000000..5ac77ec17f6 --- /dev/null +++ b/src/modules/account/store/selectors.test.js @@ -0,0 +1,9 @@ +import mockSavedAccounts from '@tests/fixtures/accounts'; +import { selectCurrentAccount } from './selectors'; + +describe('Auth middleware', () => { + it('Should return accountSchema if setCurrentAccount action type is tiggered', async () => { + const state = { account: { current: mockSavedAccounts[0] } }; + expect(selectCurrentAccount(state)).toEqual(mockSavedAccounts[0]); + }); +}); diff --git a/src/modules/account/utils/decryptionAccount.js b/src/modules/account/utils/decryptionAccount.js index a05da9e2de1..70117a25189 100644 --- a/src/modules/account/utils/decryptionAccount.js +++ b/src/modules/account/utils/decryptionAccount.js @@ -1,3 +1,4 @@ +/* istanbul ignore file */ // eslint-disable-next-line export const decryptionAccount = (accountSchema, password) => { // TODO implement this function in ticket #4299 diff --git a/src/modules/account/utils/encryptionAccount.js b/src/modules/account/utils/encryptionAccount.js index 7a1bd7fab5c..55ff84cd84e 100644 --- a/src/modules/account/utils/encryptionAccount.js +++ b/src/modules/account/utils/encryptionAccount.js @@ -1,3 +1,4 @@ +/* istanbul ignore file */ const mockAccount = { crypto: { kdf: 'argon2id',