fix(core): update

This commit is contained in:
2020-03-25 15:16:03 +00:00
parent aa709985ae
commit b42c700a28
7 changed files with 72 additions and 50 deletions

View File

@ -1,8 +1,20 @@
import { expect, tap } from '@pushrocks/tapbundle';
import * as sdk from '../ts/index';
import { ISimpleRequest } from '@tsclass/tsclass/dist_ts/network';
tap.test('first test', async () => {
console.log(sdk.standardExport);
tap.test('should create a valid Handler', async () => {
class MyHandler extends sdk.AAgHandler {
slug: 'testapi';
public async handleRequest(request: ISimpleRequest) {
// this.authenticationHandler
let response: any;
return response;
}
}
const myHandlerInstance = new MyHandler();
expect(myHandlerInstance).to.be.instanceOf(sdk.AAgHandler);
});
tap.start();