mirror of https://git.tuxpa.in/a/code-server.git
18 lines
435 B
TypeScript
18 lines
435 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.onInitData((data) => {
|
||
|
expect(data.dataDirectory).toEqual(dataDirectory);
|
||
|
expect(data.workingDirectory).toEqual(workingDirectory);
|
||
|
done();
|
||
|
});
|
||
|
});
|
||
|
});
|