mirror of
https://git.tuxpa.in/a/code-server.git
synced 2024-12-29 13:38:46 +00:00
22 lines
601 B
TypeScript
22 lines
601 B
TypeScript
import { createClient } from "./helpers";
|
|
|
|
describe("Server", () => {
|
|
const dataDirectory = "/tmp/example";
|
|
const workingDirectory = "/working/dir";
|
|
const builtInExtensionsDirectory = "/tmp/example";
|
|
const client = createClient({
|
|
dataDirectory,
|
|
workingDirectory,
|
|
builtInExtensionsDirectory,
|
|
});
|
|
|
|
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();
|
|
});
|
|
});
|
|
});
|