mirror of https://github.com/coder/code-server.git
refactor: dont use actual logger in helper
This commit is contained in:
parent
711abd8d84
commit
1470ff203a
|
@ -33,3 +33,15 @@ export function createCookieIfDoesntExist(cookies: Array<Cookie>, cookieToStore:
|
||||||
}
|
}
|
||||||
return cookies
|
return cookies
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const loggerModule = {
|
||||||
|
field: jest.fn(),
|
||||||
|
level: 2,
|
||||||
|
logger: {
|
||||||
|
debug: jest.fn(),
|
||||||
|
error: jest.fn(),
|
||||||
|
info: jest.fn(),
|
||||||
|
trace: jest.fn(),
|
||||||
|
warn: jest.fn(),
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue