Merge pull request #4119 from Ocelot-Social-Community/fix-cookie-test

Mock Cookie In Auth.test.js
This commit is contained in:
Wolfgang Huß 2021-01-07 15:21:21 +01:00 committed by GitHub
commit 156d54e3e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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