smartproxy/test/test.ts

19 lines
402 B
TypeScript
Raw Normal View History

2019-08-20 15:50:17 +00:00
import { expect, tap } from '@pushrocks/tapbundle';
2019-08-20 16:42:52 +00:00
import * as smartproxy from '../ts/index';
2019-08-20 15:50:17 +00:00
2019-08-21 21:41:06 +00:00
let testProxy: smartproxy.SmartProxy;
2019-08-20 15:50:17 +00:00
tap.test('first test', async () => {
2019-08-21 21:41:06 +00:00
testProxy = new smartproxy.SmartProxy();
});
tap.test('should start the testproxy', async () => {
await testProxy.start();
});
tap.test('should close the testproxy', async () => {
await testProxy.stop();
2019-08-20 16:42:52 +00:00
});
2019-08-20 15:50:17 +00:00
2019-08-20 16:42:52 +00:00
tap.start();