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