Skip to content

Commit 46f1ec9

Browse files
committed
tewaks for test coverage
1 parent a788f19 commit 46f1ec9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@
1212
"prepublishOnly": "run-p 'test:dist:*' && npm run test:browser",
1313
"clean": "rimraf build dist dist.*",
1414
"test": "mocha 'test/**/*.test.ts'",
15-
"test:purejs": "MSGPACK_WASM=never mocha 'test/**/*.test.ts'",
16-
"test:wasm": "npm run asbuild:production && MSGPACK_WASM=force mocha 'test/**/*.test.ts'",
15+
"test:purejs": "TEXT_DECODER=never MSGPACK_WASM=never mocha 'test/**/*.test.ts'",
16+
"test:wasm": "npm run asbuild:production && TEXT_DECODER=never MSGPACK_WASM=force mocha 'test/**/*.test.ts'",
17+
"test:td": "TEXT_DECODER=force mocha 'test/**/*.test.ts'",
1718
"test:dist:purejs": "TS_NODE_PROJECT=tsconfig.test-dist-es5-purejs.json npm run test:purejs -- --reporter=dot",
1819
"test:dist:wasm": "TS_NODE_PROJECT=tsconfig.test-dist-es5-wasm.json npm run test:wasm -- --reporter=dot",
19-
"test:cover": "npm run cover:clean && npm run test:cover:purejs && npm run test:cover:wasm && npm run cover:report",
20+
"test:cover": "npm run cover:clean && npm-run-all 'test:cover:*' && npm run cover:report",
2021
"test:cover:purejs": "npx nyc --no-clean npm run test:purejs",
2122
"test:cover:wasm": "npx nyc --no-clean npm run test:wasm",
23+
"test:cover:td": "npx nyc --no-clean npm run test:td",
2224
"cover:clean": "rimraf .nyc_output coverage/",
2325
"cover:report": "nyc report --reporter=lcov --reporter=text-summary --reporter=html",
2426
"test:browser": "karma start --single-run",

test/msgpack-test-suite.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,8 @@ describe("msgpack-test-suite", () => {
9393
STR32: "b".repeat(0x10_000),
9494
STR32_MBS: "🍣".repeat(0x10_000),
9595
STR32LARGE: "c".repeat(0x100_000), // may cause "RangeError: Maximum call stack size exceeded" in simple implelementions
96-
STR_INCLUDING_NUL: "foo\0bar",
96+
STR_INCLUDING_NUL: "foo\0bar\0",
9797
STR_BROKEN_FF: "\xff",
98-
STR_LONE_SURROGATE_1: "\ud800",
99-
STR_LONE_SURROGATE_2: "\udbff",
10098
BIN16: new Uint8Array(0x100).fill(0xff),
10199
BIN32: new Uint8Array(0x10000).fill(0xff),
102100
ARRAY16: new Array<boolean>(0x100).fill(true),

0 commit comments

Comments
 (0)