summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2019-01-17 11:03:37 +0100
committerAndrej Mihajlov <and@mullvad.net>2019-01-17 14:24:31 +0100
commit043ed2cbd5a23f2aadc35c91f97632c570b10fee (patch)
tree59e46f7a79b701b744e9e684c56e65e09ba301ab
parentbf14af220b7af5f02e8e6f66734ab8c8eea020bf (diff)
downloadmullvadvpn-043ed2cbd5a23f2aadc35c91f97632c570b10fee.tar.xz
mullvadvpn-043ed2cbd5a23f2aadc35c91f97632c570b10fee.zip
Fix tests
-rw-r--r--gui/packages/desktop/test/components/Login.spec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/packages/desktop/test/components/Login.spec.js b/gui/packages/desktop/test/components/Login.spec.js
index 79ccc7850f..b2ab36fdc2 100644
--- a/gui/packages/desktop/test/components/Login.spec.js
+++ b/gui/packages/desktop/test/components/Login.spec.js
@@ -29,7 +29,7 @@ describe('components/Login', () => {
expect(getComponent(component, 'AccountInput').length).to.be.above(0);
});
- it('does not show the footer nor account input when logged in', () => {
+ it('does not show the footer but shows the account input when logged in', () => {
const component = shallow(
<Login
{...{
@@ -42,7 +42,7 @@ describe('components/Login', () => {
const invisibleFooters = getComponent(component, 'footerVisibility false');
expect(visibleFooters.length).to.equal(0);
expect(invisibleFooters.length).to.equal(1);
- expect(getComponent(component, 'AccountInput').length).to.equal(0);
+ expect(getComponent(component, 'AccountInput').length).to.equal(1);
});
it('logs in with the entered account number when clicking the login icon', (done) => {