Skip to content

Commit

Permalink
mock cookie for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogge committed Jan 7, 2021
1 parent 27d3e81 commit c8d04a1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions webapp/store/auth.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
import { getters, actions } from './auth.js'

jest.mock('universal-cookie', () => {
return jest.fn().mockImplementation(() => {
return {
get: (arg) => 'my-cookie-name',
}
})
})

let state
let commit
let dispatch
Expand Down

0 comments on commit c8d04a1

Please sign in to comment.