fix(core): update

This commit is contained in:
2019-01-02 02:08:12 +01:00
parent fbe1b93a48
commit dbaefbb3cc
8 changed files with 130 additions and 48 deletions

View File

@ -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();