mirror of
https://github.com/msojocs/wx-compiler.git
synced 2025-07-19 00:00:04 +08:00
fix: wcc test
This commit is contained in:
parent
8c53cedff4
commit
a780f231d3
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env node
|
||||
// wcc.exe md5 = "33807bac814b4b639d98be3270bdc56c"
|
||||
const version = "20220511";
|
||||
const version = "20220908";
|
||||
const { spawn } = require("child_process");
|
||||
const path = require("path");
|
||||
const fs = require("fs");
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env node
|
||||
// wcsc.exe md5 = "d45f45f109afa238cd83c8ad1d0e2a5e"
|
||||
const version = "20220423";
|
||||
const version = "20220908";
|
||||
const { spawn } = require("child_process");
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
|
@ -42,14 +42,14 @@ describe("module wcc", function () {
|
||||
if(!!config.lazyloadConfig){
|
||||
const wineResult = JSON.parse(fs.readFileSync(
|
||||
`${casePath}/output/wine-output.json`
|
||||
));
|
||||
).toString());
|
||||
fs.writeFileSync(`${storagePath}/node-output.json`, JSON.stringify(nodeResult, null, 4));
|
||||
assert.deepEqual2(wineResult, nodeResult);
|
||||
}else{
|
||||
nodeResult = nodeResult.substring(0, nodeResult.length - 1);
|
||||
const wineResult = fs.readFileSync(
|
||||
`${casePath}/output/wine-output.js`
|
||||
);
|
||||
).toString();
|
||||
fs.writeFileSync(`${storagePath}/node-output.js`, nodeResult);
|
||||
assert.equal(wineResult, nodeResult);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user