We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 606d13d + c591d0b commit ea22184Copy full SHA for ea22184
1 file changed
test/datastore/request.js
@@ -14,7 +14,7 @@
14
* limitations under the License.
15
*/
16
17
-/*global describe, it, beforeEach */
+/*global describe, it, beforeEach, after */
18
19
'use strict';
20
@@ -30,6 +30,7 @@ var Query = require('../../lib/datastore/query.js');
30
var Stream = require('stream');
31
var util = require('../../lib/common/util.js');
32
33
+var httpsRequestCached = https.request;
34
var httpsRequestOverride = util.noop;
35
36
extend(true, https, {
@@ -78,6 +79,10 @@ describe('Request', function() {
78
79
};
80
});
81
82
+ after(function() {
83
+ https.request = httpsRequestCached;
84
+ });
85
+
86
describe('get', function() {
87
it('should get by key', function(done) {
88
request.makeReq_ = function(method, req, callback) {
0 commit comments