Comparing version 2.1.8 to 2.1.9
@@ -9,3 +9,4 @@ const request = require('request') | ||
'headers', | ||
'body' | ||
'body', | ||
'elapsedTime' | ||
] | ||
@@ -12,0 +13,0 @@ |
{ | ||
"name": "bluereq", | ||
"version": "2.1.8", | ||
"version": "2.1.9", | ||
"description": "A bluebird promise wrapper for HTTP requests", | ||
@@ -5,0 +5,0 @@ "main": "lib/bluereq.js", |
@@ -23,2 +23,10 @@ const should = require('should') | ||
}) | ||
it('has an elapsedTime when a timer is requested', done => { | ||
bluereq.get({ url: invalidConfig.url, time: true }) | ||
.catch(err => { | ||
should(err.elapsedTime).be.a.Number() | ||
done() | ||
}) | ||
}) | ||
}) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
67711
645