mirror of
https://github.com/apache/superset.git
synced 2026-04-17 23:25:05 +00:00
chore: upgrade eslint, babel, and prettier (#12393)
This commit is contained in:
@@ -21,9 +21,7 @@ import parseCookie from 'src/utils/parseCookie';
|
||||
describe('parseCookie', () => {
|
||||
let cookieVal = '';
|
||||
Object.defineProperty(document, 'cookie', {
|
||||
get: jest.fn().mockImplementation(() => {
|
||||
return cookieVal;
|
||||
}),
|
||||
get: jest.fn().mockImplementation(() => cookieVal),
|
||||
});
|
||||
it('parses cookie strings', () => {
|
||||
cookieVal = 'val1=foo; val2=bar';
|
||||
|
||||
Reference in New Issue
Block a user