2017-06-09 12:59:36 +00:00
|
|
|
import * as smarterror from '../dist/index'
|
|
|
|
|
|
|
|
import { expect, tap } from 'tapbundle'
|
2017-06-09 13:30:50 +00:00
|
|
|
|
|
|
|
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()
|