Skip to content

Commit 205f4e5

Browse files
aqrlnjasnell
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 <anna@addaleax.net> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 27f4c94 commit 205f4e5

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 renamed to test/parallel/test-repl-function-definition-edge-case.js

Lines changed: 1 addition & 1 deletion
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)