diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-12-10 21:51:33 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-12-10 21:51:33 +0100 |
commit | 0469abd4a9c9270a1fdc962969e36e63699af8b4 (patch) | |
tree | f9864d4a4148621378958794cbbfdc2393733283 /node_modules/node-fetch/test | |
parent | 6947e79bbc258f7bc96af424ddb71a511f0c15a3 (diff) |
upgrade dependencies
Diffstat (limited to 'node_modules/node-fetch/test')
-rw-r--r-- | node_modules/node-fetch/test/test.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/node_modules/node-fetch/test/test.js b/node_modules/node-fetch/test/test.js index 284b263a9..d1bd3fd4e 100644 --- a/node_modules/node-fetch/test/test.js +++ b/node_modules/node-fetch/test/test.js @@ -1458,7 +1458,7 @@ describe('node-fetch', function() { expect(body).to.have.property('buffer'); }); - it('should create custom FetchError', function() { + it('should create custom FetchError', function funcName() { var systemError = new Error('system'); systemError.code = 'ESOMEERROR'; @@ -1470,6 +1470,8 @@ describe('node-fetch', function() { expect(err.type).to.equal('test-error'); expect(err.code).to.equal('ESOMEERROR'); expect(err.errno).to.equal('ESOMEERROR'); + expect(err.stack).to.include('funcName'); + expect(err.stack.split('\n')[0]).to.equal(err.name + ': ' + err.message); }); it('should support https request', function() { |