mirror of https://github.com/coder/code-server.git
19 lines
439 B
TypeScript
19 lines
439 B
TypeScript
import { createClient } from "./helpers";
|
|
|
|
describe("Server", () => {
|
|
const dataDirectory = "/tmp/example";
|
|
const workingDirectory = "/working/dir";
|
|
const client = createClient({
|
|
dataDirectory,
|
|
workingDirectory,
|
|
});
|
|
|
|
it("should get init msg", (done) => {
|
|
client.initData.then((data) => {
|
|
expect(data.dataDirectory).toEqual(dataDirectory);
|
|
expect(data.workingDirectory).toEqual(workingDirectory);
|
|
done();
|
|
});
|
|
});
|
|
});
|