Skip to content

Commit

Permalink
Improved style in stack trace test
Browse files Browse the repository at this point in the history
  • Loading branch information
dasilvacontin committed Sep 6, 2015
1 parent 49353b8 commit 08ce12f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions test/subclass-error.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,9 @@ describe('SubclassError', function () {
describe('stack trace', function () {
it('should be correct', function () {
var NoFoodError = SubclassError('NoFoodError')
function eat () {
throw new NoFoodError()
}
function hungry () {
eat()
}
function eat () { throw new NoFoodError() }
function hungry () { eat() }

try {
hungry()
} catch (e) {
Expand Down

0 comments on commit 08ce12f

Please sign in to comment.