smarterror/test/test.ts
2017-06-09 15:30:50 +02:00

12 lines
276 B
TypeScript

import * as smarterror from '../dist/index'
import { expect, tap } from 'tapbundle'
tap.test('should create a valid error', async () => {
let myError = new smarterror.SmartError('wow')
expect(myError).to.be.instanceof(Error)
console.log(myError.stack)
})
tap.start()