Skip to content

Commit

Permalink
add case
Browse files Browse the repository at this point in the history
  • Loading branch information
cenfun committed Sep 25, 2024
1 parent 67ea179 commit e9b4bcb
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 12 deletions.
6 changes: 6 additions & 0 deletions test/mock/src/untest/中文.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// 测试包含中文内容
const zhCNStr = '中文字符';

module.exports = (v) => {
console.log(zhCNStr);
};
8 changes: 8 additions & 0 deletions test/snapshot/istanbul.snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,14 @@
"branches": "0.00 %",
"uncoveredLines": "",
"extras": ""
},
"untest/中文.js": {
"lines": "0.00 %",
"functions": "0.00 %",
"statements": "0.00 %",
"branches": "0.00 %",
"uncoveredLines": "",
"extras": ""
}
}
}
17 changes: 13 additions & 4 deletions test/snapshot/merge.snapshot.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"type": "v8",
"summary": {
"bytes": "76.54 %",
"statements": "79.05 %",
"bytes": "76.25 %",
"statements": "78.67 %",
"branches": "60.13 %",
"functions": "73.39 %",
"lines": "65.87 %"
"functions": "72.73 %",
"lines": "65.60 %"
},
"files": {
"my-vm-filename.js": {
Expand Down Expand Up @@ -296,6 +296,15 @@
"uncoveredLines": "1-15",
"extras": "6b,10b,16b"
},
"test/mock/src/untest/中文.js": {
"functions": "0.00 %",
"branches": "",
"statements": "0.00 %",
"lines": "0.00 %",
"bytes": "0.00 %",
"uncoveredLines": "2-6",
"extras": "1c,3b,7b"
},
"webpack/after-startup": {
"functions": "",
"branches": "",
Expand Down
17 changes: 13 additions & 4 deletions test/snapshot/puppeteer.snapshot.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"type": "v8",
"summary": {
"bytes": "77.10 %",
"statements": "82.77 %",
"bytes": "76.77 %",
"statements": "82.31 %",
"branches": "60.39 %",
"functions": "80.00 %",
"lines": "66.24 %"
"functions": "79.07 %",
"lines": "65.94 %"
},
"files": {
"test/mock/css/style.css": {
Expand Down Expand Up @@ -250,6 +250,15 @@
"bytes": "0.00 %",
"uncoveredLines": "1-15",
"extras": "6b,10b,16b"
},
"test/mock/src/untest/中文.js": {
"functions": "0.00 %",
"branches": "",
"statements": "0.00 %",
"lines": "0.00 %",
"bytes": "0.00 %",
"uncoveredLines": "2-6",
"extras": "1c,3b,7b"
}
}
}
17 changes: 13 additions & 4 deletions test/snapshot/v8.snapshot.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"type": "v8",
"summary": {
"bytes": "77.10 %",
"statements": "82.77 %",
"bytes": "76.77 %",
"statements": "82.31 %",
"branches": "60.39 %",
"functions": "80.00 %",
"lines": "66.24 %"
"functions": "79.07 %",
"lines": "65.94 %"
},
"files": {
"test/mock/css/style.css": {
Expand Down Expand Up @@ -250,6 +250,15 @@
"bytes": "0.00 %",
"uncoveredLines": "1-15",
"extras": "6b,10b,16b"
},
"test/mock/src/untest/中文.js": {
"functions": "0.00 %",
"branches": "",
"statements": "0.00 %",
"lines": "0.00 %",
"bytes": "0.00 %",
"uncoveredLines": "2-6",
"extras": "1c,3b,7b"
}
}
}

0 comments on commit e9b4bcb

Please sign in to comment.