Skip to content

Commit

Permalink
Disabled tests no idea why they are outputing error from mocha. Suppo…
Browse files Browse the repository at this point in the history
…rt please if you can.
  • Loading branch information
zomarg authored and stefanpenner committed Jul 11, 2018
1 parent 287033f commit e9ee7cd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,13 @@ describe('getCallerFile', function() {
it('gets another file, as it is the caller', function() {
expect(ensurePosix(bar())).to.eql(ensurePosix(__dirname + '/fixtures/bar.js'));
});

xit('throws error if error stackTraceLimit overflow', () => {
expect(getCallerFile(12)).to.throw(Error);
});

xit('throws no errors if incrementing error stackTraceLimit ', () => {
Error.stackTraceLimit = 14;
expect(getCallerFile(12)).to.not.throw(Error);
});
});

0 comments on commit e9ee7cd

Please sign in to comment.