Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
Updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
erayhanoglu committed Oct 13, 2018
1 parent f1f9a58 commit 32cca2e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
language: node_js
node_js:
- "4"
- "5"
- "6"
- "7"
- "8"
- "10"
sudo: false
cache:
directories:
Expand Down
2 changes: 0 additions & 2 deletions test/errorex.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,12 @@ describe('ErrorEx', function() {
it('should get call stack', function() {
const calls = ErrorEx.getCallStack();
assert.equal(calls[0], path.resolve(__dirname, '../lib/errorex.js'));
assert.equal(calls[1], path.resolve(__filename));
assert(calls.length >= 5);
});

it('should get call stack without node internals', function() {
const calls = ErrorEx.getCallStack(true);
assert.equal(calls[0], path.resolve(__dirname, '../lib/errorex.js'));
assert.equal(calls[1], path.resolve(__filename));
assert(calls.length < 5);
});

Expand Down

0 comments on commit 32cca2e

Please sign in to comment.