mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
mock cookie for testing
This commit is contained in:
parent
27d3e81f91
commit
c8d04a1604
@ -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