Skip to content

Instantly share code, notes, and snippets.

@McTristan
Created August 4, 2021 08:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save McTristan/9703cb2c920d74e8b431544d5192e9db to your computer and use it in GitHub Desktop.
Save McTristan/9703cb2c920d74e8b431544d5192e9db to your computer and use it in GitHub Desktop.
describe('remote server node', () => {
beforeEach((done: () => void) => {
helper.start(done);
});
afterEach(async (done: () => void) => {
await helper.stop(done);
});
test('should be loaded', async (done: () => void) => {
const flow: TestFlowsItem[] = [FakeRemoteServerDefinition];
await helper.load(remoteServerInit, flow, {});
const nodeToTest = helper.getNode<RemoteServerNode>('serverConfig');
assert.that(nodeToTest.name).is.equalTo('testServer');
done();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment