fix(core): update
This commit is contained in:
16
test/test.ts
16
test/test.ts
@ -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();
|
||||
|
Reference in New Issue
Block a user