Skip to content

Commit dda6d5c

Browse files
committed
Fixed failimng tests.
1 parent dbe127f commit dda6d5c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/versioning.test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ test('should detect custom binary host from env', (t) => {
111111
const cloned = JSON.parse(JSON.stringify(parsed_package_json));
112112
const opts = versioning.evaluate(cloned, {});
113113

114-
t.equal(opts.host, 'https://npm.taobao.org/mirrors/node-inspector/');
114+
t.equal(opts.host, 'https://registry.npmmirror.com/node-inspector/');
115115

116116
delete process.env.npm_config_test_binary_host_mirror;
117117
t.end();
@@ -1325,7 +1325,8 @@ test('should replace "-" with "_" in mirror binary host', (t) => {
13251325
};
13261326

13271327
process.env.npm_config_canvas_prebuilt_binary_host_mirror = 'https://registry.npmmirror.com/node-canvas-prebuilt/';
1328-
const opts = versioning.evaluate(mock_package_json, {});
1328+
const cloned = JSON.parse(JSON.stringify(parsed_package_json));
1329+
const opts = versioning.evaluate(cloned, {});
13291330
t.equal(opts.host, 'https://registry.npmmirror.com/node-canvas-prebuilt/');
13301331
delete process.env.npm_config_canvas_prebuilt_binary_host_mirror;
13311332
t.end();

0 commit comments

Comments
 (0)