From 1932d25058c6135e764593d7fc2d3fffdbec8601 Mon Sep 17 00:00:00 2001 From: Fabian Date: Wed, 13 Dec 2017 11:12:49 +0100 Subject: [PATCH] fixed tests --- test/unit/specs/NISessionWelcome.spec.js | 4 ++-- .../__snapshots__/NISessionWelcome.spec.js.snap | 16 ++++++++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/test/unit/specs/NISessionWelcome.spec.js b/test/unit/specs/NISessionWelcome.spec.js index dc10fb8d26..8fddbf8bfc 100644 --- a/test/unit/specs/NISessionWelcome.spec.js +++ b/test/unit/specs/NISessionWelcome.spec.js @@ -42,8 +42,8 @@ describe('NISessionWelcome', () => { }) describe('with accounts', () => { - beforeEach(() => { - wrapper.vm.user.accounts = ['foo', 'bar'] + beforeAll(() => { + accounts.push('foo', 'bar') wrapper.update() }) diff --git a/test/unit/specs/__snapshots__/NISessionWelcome.spec.js.snap b/test/unit/specs/__snapshots__/NISessionWelcome.spec.js.snap index 064ed3a13e..6abd0a537a 100644 --- a/test/unit/specs/__snapshots__/NISessionWelcome.spec.js.snap +++ b/test/unit/specs/__snapshots__/NISessionWelcome.spec.js.snap @@ -11,11 +11,23 @@ exports[`NISessionWelcome with accounts has the expected html structure 1`] = ` help_outline
-
- create + lock
+
+
+ Sign in with password +
+
+ If you have an account, choose this option +
+
+
+
+
+ create +
Create new account