05899b5edf
* Create initial server layout * Adjust command name to entry * Add @oclif/config as dependency * Implement build process for outputting single binary * Add init message * Remove unused import, add tsconfig.json to .gitignore * Accidently pushed wacky change to output host FS files * Add options to createApp
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();
|
|
});
|
|
});
|
|
}); |