Skip to content
This repository was archived by the owner on May 18, 2026. It is now read-only.

Commit edcaa75

Browse files
committed
test: fix escaping in integration test for control characters
Correctly use backslashes in dedent template literals to expect literal \n and \. This matches the Ruby code generator's behavior of escaping control characters.
1 parent f183814 commit edcaa75

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/integration/ruby-tab/operators.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,13 @@ describe('Ruby Tab: Operators category blocks', () => {
105105
const beforeRuby = dedent`
106106
"\\\\" + "\\\\"
107107
108-
"\\n" + "\\n"
108+
"\\\\n" + "\\\\n"
109109
`;
110110

111111
const afterRuby = dedent`
112112
"\\\\" + "\\\\"
113113
114-
"\\n" + "\\n"
114+
"\\\\n" + "\\\\n"
115115
`;
116116

117117
await clickText('Ruby', '*[@role="tab"]');

0 commit comments

Comments
 (0)