Skip to content

Commit

Permalink
Merge pull request #4119 from Ocelot-Social-Community/fix-cookie-test
Browse files Browse the repository at this point in the history
Mock Cookie In Auth.test.js
  • Loading branch information
Tirokk authored Jan 7, 2021
2 parents 27d3e81 + c8d04a1 commit 156d54e
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 156d54e

Please sign in to comment.