2019-01-15 18:36:09 +00:00
|
|
|
import { createClient } from "./helpers";
|
|
|
|
|
|
|
|
describe("Server", () => {
|
|
|
|
const dataDirectory = "/tmp/example";
|
|
|
|
const workingDirectory = "/working/dir";
|
2019-02-19 16:42:32 +00:00
|
|
|
const builtInExtensionsDirectory = "/tmp/example";
|
2019-03-12 16:12:50 +00:00
|
|
|
const cacheDirectory = "/tmp/cache";
|
2019-01-15 18:36:09 +00:00
|
|
|
const client = createClient({
|
2019-03-12 16:12:50 +00:00
|
|
|
builtInExtensionsDirectory,
|
|
|
|
cacheDirectory,
|
2019-01-15 18:36:09 +00:00
|
|
|
dataDirectory,
|
|
|
|
workingDirectory,
|
|
|
|
});
|
|
|
|
|
2019-04-02 22:44:28 +00:00
|
|
|
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);
|
2019-01-15 18:36:09 +00:00
|
|
|
});
|
2019-01-18 21:46:40 +00:00
|
|
|
});
|