fix(core): update
This commit is contained in:
@ -2,12 +2,9 @@ import { expect, tap } from '@pushrocks/tapbundle';
|
||||
|
||||
import * as smartstatus from '../ts/index';
|
||||
|
||||
tap.test('should create valid status classes', async () => {
|
||||
const myStatus301 = new smartstatus.status301();
|
||||
console.log(myStatus301.code);
|
||||
console.log(myStatus301.text);
|
||||
console.log(myStatus301.description);
|
||||
return expect(myStatus301).to.be.instanceOf(smartstatus.HttpStatus);
|
||||
tap.test('should get a status by codeString', async () => {
|
||||
const status = smartstatus.HttpStatus.getHttpStatusByString('404');
|
||||
console.log(status);
|
||||
});
|
||||
|
||||
tap.start();
|
||||
|
Reference in New Issue
Block a user