Skip to content

Commit

Permalink
chore(istanbul-reports): make tests platform aware
Browse files Browse the repository at this point in the history
  • Loading branch information
bitcloud authored and saboya committed Oct 12, 2021
1 parent f18e556 commit 52305e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -6,9 +6,9 @@
},
"textReportExpected": "-------------------|---------|----------|---------|---------|-------------------\nFile | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s \n-------------------|---------|----------|---------|---------|-------------------\nAll files | 0 | 0 | 0 | 0 | \u001b[31;1m \u001b[0m \n istanbuljs-test | 0 | 0 | 0 | 0 | \u001b[31;1m \u001b[0m \n rootfile.js | 0 | 0 | 0 | 0 | \u001b[31;1m \u001b[0m \n ...-test/package1 | 0 | 0 | 0 | 0 | \u001b[31;1m \u001b[0m \n package1file.js | 0 | 0 | 0 | 0 | \u001b[31;1m \u001b[0m \n ...ge1/subpackage | 0 | 0 | 0 | 0 | \u001b[31;1m \u001b[0m \n ...ackagefile.js | 0 | 0 | 0 | 0 | \u001b[31;1m \u001b[0m \n ...-test/package2 | 0 | 0 | 0 | 0 | \u001b[31;1m \u001b[0m \n package2file.js | 0 | 0 | 0 | 0 | \u001b[31;1m \u001b[0m \n-------------------|---------|----------|---------|---------|-------------------\n",
"htmlSpaFiles": [
"package1/package1file.js.html",
"package1/subpackage/subpackagefile.js.html",
"package2/package2file.js.html",
["package1","package1file.js.html"],
["package1","subpackage","subpackagefile.js.html"],
["package2","package2file.js.html"],
"rootfile.js.html",
"index.html"
],
Expand Down
2 changes: 1 addition & 1 deletion packages/istanbul-reports/test/html-spa/index.js
Expand Up @@ -161,7 +161,7 @@ describe('html-spa', () => {
operations
.filter(op => op.type === 'write')
.map(op => path.join(op.baseDir, op.file)),
fixture.htmlSpaFiles
fixture.htmlSpaFiles.map(p => path.join(...[].concat(p)))
);

assert.deepEqual(
Expand Down

0 comments on commit 52305e8

Please sign in to comment.