Skip to content

Commit d2c9111

Browse files
aqrlnitaloacasas
authored andcommitted
test: fix repl-function-redefinition-edge-case
`test/known_issues/test-repl-function-redefinition-edge-case.js` had been introduced as a part of #7624 but the meat of the test became fixed in 007386e. Despite that, the test continued to fail since it was broken itself: there was a missing colon in the expected output. This commit adds the missing colon and moves the test from `test/known_issues` to `test/parallel`. PR-URL: #11772 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent c9cf922 commit d2c9111

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/known_issues/test-repl-function-redefinition-edge-case.js test/parallel/test-repl-function-definition-edge-case.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ r.input.emit('data', 'function a() { return 42; } (1)\n');
1313
r.input.emit('data', 'a\n');
1414
r.input.emit('data', '.exit');
1515

16-
const expected = '1\n[Function a]\n';
16+
const expected = '1\n[Function: a]\n';
1717
const got = r.output.accumulator.join('');
1818
assert.strictEqual(got, expected);
1919

0 commit comments

Comments
 (0)