freeze patches object for test
This commit is contained in:
parent
d266fb9509
commit
ea43d7633d
26
test/patches.json
Normal file
26
test/patches.json
Normal file
@ -0,0 +1,26 @@
|
||||
{
|
||||
"v0.12.15": [
|
||||
"backport.R00000.patch",
|
||||
"backport.R24002.patch",
|
||||
"backport.R24204.patch",
|
||||
"backport.R24262.patch",
|
||||
"backport.R24266.patch",
|
||||
"backport.R24523.patch",
|
||||
"backport.R24543.patch",
|
||||
"backport.R24639.patch",
|
||||
"backport.R24642.patch",
|
||||
"backport.R24643.patch",
|
||||
"backport.R24644.patch",
|
||||
"backport.R24824.patch",
|
||||
"backport.R25039.patch",
|
||||
"backport.R25444.patch",
|
||||
"node.v0.12.15.patch"
|
||||
],
|
||||
"v4.4.7": [
|
||||
"backport.R32768.v8=4.5.patch",
|
||||
"node.v4.4.7.patch"
|
||||
],
|
||||
"v6.3.1": [
|
||||
"node.v6.3.1.patch"
|
||||
]
|
||||
}
|
||||
@ -19,6 +19,17 @@ const assets = [];
|
||||
|
||||
require('../package.json').version = '1337.2.3';
|
||||
|
||||
const patchesJson = require('../patches/patches.json');
|
||||
const newPatchesJson = require('./patches.json');
|
||||
|
||||
for (const nodeVersion in patchesJson) {
|
||||
delete patchesJson[nodeVersion];
|
||||
}
|
||||
|
||||
for (const nodeVersion in newPatchesJson) {
|
||||
patchesJson[nodeVersion] = newPatchesJson[nodeVersion];
|
||||
}
|
||||
|
||||
require('../lib/log.js').log = new LogMock(actions);
|
||||
|
||||
require('../lib/temp-path.js').tempPath = function () {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user