Skip to content

Commit

Permalink
fix: 🐛 Added isAuthenticated to test user (kolplattformen#119)
Browse files Browse the repository at this point in the history
Needed for background app state change in app
  • Loading branch information
viktorlarsson authored Apr 24, 2021
1 parent c3b4b15 commit 766f4ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ describe('api', () => {
expect(user).toEqual({
firstName: 'Namn',
lastName: 'Namnsson',
isAuthenticated: true
})

const children = await api.getChildren()
Expand Down
1 change: 1 addition & 0 deletions lib/fakeData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1091,6 +1091,7 @@ const data: any = {
export const user = (): User => ({
firstName: 'Namn',
lastName: 'Namnsson',
isAuthenticated: true
})

export const children = (): EtjanstChild[] => [
Expand Down

0 comments on commit 766f4ff

Please sign in to comment.