Skip to content

Commit 22c390d

Browse files
authored
integration test: sort new config hash list
1 parent 8bec0ea commit 22c390d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/integration/modules/integration-test/test-suite-result.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ class TestSuiteResult {
110110
Promise.all([rmReady, mkdirReady]).then(() => {
111111
let configData = value;
112112
delete configData.tmp;
113+
configData.test = Object.keys(configData.test).sort().reduce((a, c) => (a[c] = configData.test[c], a), {});
113114
configData = JSON.stringify(configData, null, 4);
114115
fs.writeFile(conFigPath, configData, (err) => {
115116
if (err) {

0 commit comments

Comments
 (0)