Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
faboweb committed Dec 13, 2017
1 parent 1c28ac1 commit 1932d25
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/unit/specs/NISessionWelcome.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ describe('NISessionWelcome', () => {
})

describe('with accounts', () => {
beforeEach(() => {
wrapper.vm.user.accounts = ['foo', 'bar']
beforeAll(() => {
accounts.push('foo', 'bar')
wrapper.update()
})

Expand Down
16 changes: 14 additions & 2 deletions test/unit/specs/__snapshots__/NISessionWelcome.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,23 @@ exports[`NISessionWelcome with accounts has the expected html structure 1`] = `
<a><i class=\\"material-icons\\">help_outline</i></a>
</div>
<div class=\\"ni-session-main\\">
<!---->
<div class=\\"ni-li-session\\">
<div class=\\"ni-li-session-icon\\">
<i class=\\"material-icons\\">create</i>
<i class=\\"material-icons\\">lock</i>
</div>
<div class=\\"ni-li-session-text\\">
<div class=\\"ni-li-session-title\\">
Sign in with password
</div>
<div class=\\"ni-li-session-subtitle\\">
If you have an account, choose this option
</div>
</div>
</div>
<div class=\\"ni-li-session\\">
<div class=\\"ni-li-session-icon\\">
<i class=\\"material-icons\\">create</i>
</div>
<div class=\\"ni-li-session-text\\">
<div class=\\"ni-li-session-title\\">
Create new account
Expand Down

0 comments on commit 1932d25

Please sign in to comment.