mirror of
https://github.com/cdr/code-server.git
synced 2025-12-06 16:34:35 +01:00
feat: add tests for getEnvPaths
This commit is contained in:
parent
a57ee69822
commit
2a657ab930
1 changed files with 10 additions and 0 deletions
10
test/unit/node/util.test.ts
Normal file
10
test/unit/node/util.test.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import { getEnvPaths } from "../../../src/node/util"
|
||||
|
||||
describe("getEnvPaths", () => {
|
||||
it("should return an object with the data, config and runtime path", () => {
|
||||
const actualPaths = getEnvPaths()
|
||||
expect(actualPaths.hasOwnProperty("data")).toBe(true)
|
||||
expect(actualPaths.hasOwnProperty("config")).toBe(true)
|
||||
expect(actualPaths.hasOwnProperty("runtime")).toBe(true)
|
||||
})
|
||||
})
|
||||
Loading…
Reference in a new issue