2019-08-21 12:36:16 +00:00
|
|
|
import { expect, tap } from '@pushrocks/tapbundle';
|
2019-08-31 21:14:46 +00:00
|
|
|
import * as smartexpress from '@pushrocks/smartexpress';
|
|
|
|
|
2019-08-21 12:37:02 +00:00
|
|
|
import * as typedrequest from '../ts/index';
|
2019-08-31 21:14:46 +00:00
|
|
|
import { async } from 'rxjs/internal/scheduler/async';
|
|
|
|
|
|
|
|
let testServer: smartexpress.Server;
|
|
|
|
|
|
|
|
tap.test('should spawn a server to test with', async () => {
|
|
|
|
testServer = new smartexpress.Server({
|
|
|
|
cors: true,
|
|
|
|
forceSsl: false,
|
|
|
|
port: 3000
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
tap.test('should define a testHandler', async () => {
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
tap.test('should start the server', async () => {
|
|
|
|
await testServer.start();
|
|
|
|
});
|
2019-08-21 12:36:16 +00:00
|
|
|
|
2019-08-31 21:14:46 +00:00
|
|
|
tap.test('should end the server', async () => {
|
|
|
|
await testServer.stop();
|
2019-08-21 12:37:02 +00:00
|
|
|
});
|
2019-08-21 12:36:16 +00:00
|
|
|
|
2019-08-21 12:37:02 +00:00
|
|
|
tap.start();
|