diff --git a/.eslintignore b/.eslintignore index c6417d9..7abc067 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1 +1,2 @@ flow-typed +tests-e2e diff --git a/.flowconfig b/.flowconfig index 434f791..031b7ad 100644 --- a/.flowconfig +++ b/.flowconfig @@ -1,6 +1,7 @@ [ignore] .*/node_modules/fbjs/lib/.* .*/node_modules/react-motion/lib/.* +.*/tests-e2e/.* [include] diff --git a/.gitignore b/.gitignore index 9f6aa39..586e528 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -/node_modules +node_modules /dist /dll config/* diff --git a/src/components/accounts/actions.test.js b/src/components/accounts/actions.test.js index 999fc01..14bf959 100644 --- a/src/components/accounts/actions.test.js +++ b/src/components/accounts/actions.test.js @@ -53,7 +53,10 @@ describe('components/accounts/actions', () => { available: [], active: null }, - user: {} + auth: { + credentials: {}, + }, + user: {}, }); sinon.stub(authentication, 'validateToken').named('authentication.validateToken'); @@ -197,7 +200,10 @@ describe('components/accounts/actions', () => { active: account.id, available: [account] }, - user + auth: { + credentials: {}, + }, + user, }); }); @@ -279,7 +285,10 @@ describe('components/accounts/actions', () => { active: account2.id, available: [account, account2] }, - user + auth: { + credentials: {}, + }, + user, }); }); @@ -338,7 +347,7 @@ describe('components/accounts/actions', () => { active: foreignAccount.id, available: [account, foreignAccount, foreignAccount2] }, - user + user, }); }); @@ -409,7 +418,10 @@ describe('components/accounts/actions', () => { active: foreignAccount.id, available: [foreignAccount, foreignAccount2] }, - user + auth: { + credentials: {}, + }, + user, }); logoutStrangers()(dispatch, getState); diff --git a/src/components/auth/PanelTransition.js b/src/components/auth/PanelTransition.js index 8497003..7f64f52 100644 --- a/src/components/auth/PanelTransition.js +++ b/src/components/auth/PanelTransition.js @@ -373,6 +373,7 @@ class PanelTransition extends Component { const backButton = (