fix(core): update
This commit is contained in:
27
test/test.ts
27
test/test.ts
@ -1,8 +1,29 @@
|
||||
import { expect, tap } from '@pushrocks/tapbundle';
|
||||
import * as typedrequest from '../ts/index';
|
||||
import * as smartexpress from '@pushrocks/smartexpress';
|
||||
|
||||
tap.test('first test', async () => {
|
||||
typedrequest.TypedRequest;
|
||||
import * as typedrequest from '../ts/index';
|
||||
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();
|
||||
});
|
||||
|
||||
tap.test('should end the server', async () => {
|
||||
await testServer.stop();
|
||||
});
|
||||
|
||||
tap.start();
|
||||
|
Reference in New Issue
Block a user