fix(core): update

This commit is contained in:
2020-07-04 16:42:41 +00:00
parent c1d2231a94
commit 580f8dd7f7
4 changed files with 12 additions and 61 deletions

View File

@ -1,15 +1,13 @@
import { expect, tap } from '@pushrocks/tapbundle';
import * as sdk from '../ts/index';
import { ISimpleRequest } from '@tsclass/tsclass/dist_ts/network';
import { TypedRouter } from '@apiglobal/typedrequest';
tap.test('should create a valid Handler', async () => {
class MyHandler extends sdk.AAgHandler<any> {
slug: 'testapi';
public async handleRequest(authInfo: sdk.AuthInfo<any>, request: ISimpleRequest) {
// this.authenticationHandler
let response: any;
return response;
}
public slug: 'testapi';
public typedrouter = new TypedRouter();
public async checkReqirements() {
return {
allOk: true,