smartstatus/test/test.ts

14 lines
405 B
TypeScript
Raw Normal View History

2019-01-02 00:00:53 +00:00
import { expect, tap } from '@pushrocks/tapbundle';
2017-04-12 09:38:52 +00:00
2019-01-02 00:00:53 +00:00
import * as smartstatus from '../ts/index';
2017-04-12 09:38:52 +00:00
tap.test('should create valid status classes', async () => {
2019-01-02 00:00:53 +00:00
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.start();