mock cookie for testing

This commit is contained in:
Moriz Wahl 2021-01-07 14:26:10 +01:00
parent 27d3e81f91
commit c8d04a1604

View File

@ -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