Skip to content

Commit cc203ca

Browse files
committed
Update prototype_contamination.test.js
1 parent 4562d7a commit cc203ca

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test-node/standalone/prototype_contamination.test.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ test('prototype contamination', async (t) => {
2020

2121
const [fields, files] = await form.parse(req);
2222

23+
res.writeHead(200);
24+
res.end("ok");
25+
2326
let a;
2427
try {
2528
a = typeof String(fields);
2629
} catch {
27-
console.log("the toString method should not be compromised")
30+
;
2831
}
29-
// strictEqual(a, 'string', "the toString method should not be compromised");
30-
31-
res.writeHead(200);
32-
res.end("ok");
32+
strictEqual(a, 'string', "the toString method should not be compromised");
3333

3434
});
3535

@@ -49,9 +49,9 @@ test('prototype contamination', async (t) => {
4949

5050
strictEqual(resClient.status, 200);
5151

52-
// const text = await resClient.text();
52+
const text = await resClient.text();
5353

54-
// t.ok(text);
54+
t.ok(text);
5555
});
5656

5757

0 commit comments

Comments
 (0)