mirror of https://git.tuxpa.in/a/code-server.git
24 lines
710 B
TypeScript
24 lines
710 B
TypeScript
import { createClient } from "./helpers";
|
|
|
|
describe("Server", () => {
|
|
const dataDirectory = "/tmp/example";
|
|
const workingDirectory = "/working/dir";
|
|
const extensionsDirectory = "/tmp/example";
|
|
const builtInExtensionsDirectory = "/tmp/example";
|
|
const cacheDirectory = "/tmp/cache";
|
|
const client = createClient({
|
|
extensionsDirectory,
|
|
builtInExtensionsDirectory,
|
|
cacheDirectory,
|
|
dataDirectory,
|
|
workingDirectory,
|
|
});
|
|
|
|
it("should get init msg", async () => {
|
|
const data = await client.initData;
|
|
expect(data.dataDirectory).toEqual(dataDirectory);
|
|
expect(data.workingDirectory).toEqual(workingDirectory);
|
|
expect(data.builtInExtensionsDirectory).toEqual(builtInExtensionsDirectory);
|
|
});
|
|
});
|