We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acaf8ac commit 55b4cbaCopy full SHA for 55b4cba
tests/utils.ts
@@ -83,11 +83,11 @@ const messagesToReadableStream = (messages: Array<JSONRPCMessage>) => {
83
*/
84
const safeJsonValueArb = fc
85
.json()
86
- .map((value) => JSON.parse(value.replace('__proto__', 'proto')) as JSONValue)
+ .map((value) => JSON.parse(value.replaceAll('__proto__', 'proto')) as JSONValue)
87
.noShrink();
88
89
const safeJsonObjectArb = fc.dictionary(
90
- fc.string().map((s) => s.replace('__proto__', 'proto')),
+ fc.string().map((s) => s.replaceAll('__proto__', 'proto')),
91
safeJsonValueArb,
92
) as fc.Arbitrary<JSONObject>;
93
0 commit comments