Skip to content

Commit e1bd7d9

Browse files
committed
test: small fixes to tests
1 parent 0b09d75 commit e1bd7d9

File tree

3 files changed

+33
-12
lines changed

3 files changed

+33
-12
lines changed

package-lock.json

Lines changed: 27 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"ws": "^8.13.0"
6161
},
6262
"devDependencies": {
63-
"@fast-check/jest": "^2.0.1",
63+
"@fast-check/jest": "^2.1.0",
6464
"@peculiar/asn1-pkcs8": "^2.3.0",
6565
"@peculiar/asn1-schema": "^2.3.0",
6666
"@peculiar/asn1-x509": "^2.3.0",
@@ -78,6 +78,7 @@
7878
"eslint-config-prettier": "^8.8.0",
7979
"eslint-plugin-import": "^2.27.5",
8080
"eslint-plugin-prettier": "^5.0.0-alpha.2",
81+
"fast-check" : "^4.0.0",
8182
"jest": "^29.7.0",
8283
"jest-extended": "^4.0.2",
8384
"jest-junit": "^16.0.0",

tests/message/utils.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ const streamMessageAckPayloadArb = fc.integer({ min: 0, max: 2 ** 32 - 1 });
3333

3434
const streamMessageClosePayloadArb = streamShutdownArb;
3535

36-
const streamMessageErrorPayloadArb = fc.record({
36+
const streamMessageErrorPayloadArb: fc.Arbitrary<{
37+
shutdown: StreamShutdown;
38+
code: VarInt;
39+
}> = fc.record({
3740
shutdown: streamShutdownArb,
3841
code: varIntArb,
3942
});

0 commit comments

Comments
 (0)