Skip to content

Commit

Permalink
fix(tests): improve test
Browse files Browse the repository at this point in the history
fixes #4
  • Loading branch information
tunnckoCore committed Mar 14, 2017
1 parent 475dc14 commit a03c703
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,11 @@ test('should have empty string err.stack property if opts.showStack: false', fun
var err = stacktraceMetadata(new Error('abc'), {
showStack: false
})

test.strictEqual(err.stack, '')
test.ok(err.line)
test.ok(err.column)
test.ok(err.filename)
done()
})

Expand All @@ -126,7 +130,7 @@ test('should have props like `err.line`, `err.filename` and `err.column`', funct

test.strictEqual(e.name, 'Error')
test.strictEqual(e.message, 'my special error')
test.strictEqual(e.line, 124)
test.strictEqual(e.line, 128)
test.strictEqual(e.column, 13)
test.strictEqual(e.place, 'Function.myQuxTest')
test.strictEqual(e.filename, 'test.js')
Expand Down

0 comments on commit a03c703

Please sign in to comment.