mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-01-18 02:41:33 +00:00
Merge pull request #4119 from Ocelot-Social-Community/fix-cookie-test
Mock Cookie In Auth.test.js
This commit is contained in:
commit
156d54e3e7
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user