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