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