diff --git a/frontend/jest.config.js b/frontend/jest.config.js index 003b6163d..273ecc3c7 100644 --- a/frontend/jest.config.js +++ b/frontend/jest.config.js @@ -21,8 +21,8 @@ module.exports = { testMatch: ['**/?(*.)+(spec|test).js?(x)'], // snapshotSerializers: ['jest-serializer-vue'], transformIgnorePatterns: [ -// '/node_modules/', -// '/node_modules/(?!vee-validate/dist/rules)', + // '/node_modules/', + // '/node_modules/(?!vee-validate/dist/rules)', ], -// preset: '@vue/cli-plugin-unit-jest', + // preset: '@vue/cli-plugin-unit-jest', } diff --git a/frontend/src/views/Pages/Login.spec.js b/frontend/src/views/Pages/Login.spec.js index 5a8cdc9df..f4b0ecd1a 100644 --- a/frontend/src/views/Pages/Login.spec.js +++ b/frontend/src/views/Pages/Login.spec.js @@ -50,23 +50,23 @@ describe('Login', () => { describe('links', () => { it('has a link "Forgot Password?"', () => { - expect(wrapper.findAllComponents(RouterLinkStub).at(0).text()) - .toEqual('site.login.forgot_pwd') + expect(wrapper.findAllComponents(RouterLinkStub).at(0).text()).toEqual( + 'site.login.forgot_pwd', + ) }) it('links to /password when clicking "Forgot Password?"', () => { - expect(wrapper.findAllComponents(RouterLinkStub).at(0).props().to) - .toBe('/password') + expect(wrapper.findAllComponents(RouterLinkStub).at(0).props().to).toBe('/password') }) it('has a link "Create new account"', () => { - expect(wrapper.findAllComponents(RouterLinkStub).at(1).text()) - .toEqual('site.login.new_wallet') + expect(wrapper.findAllComponents(RouterLinkStub).at(1).text()).toEqual( + 'site.login.new_wallet', + ) }) it('links to /register when clicking "Create new account"', () => { - expect(wrapper.findAllComponents(RouterLinkStub).at(1).props().to) - .toBe('/register') + expect(wrapper.findAllComponents(RouterLinkStub).at(1).props().to).toBe('/register') }) })