Skip to content

Commit f3a68a7

Browse files
committed
fix: properly test \e escape
1 parent 9743a86 commit f3a68a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/string.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ it('handles escapes in strings', () => {
4141
expect(parseString('"uwu \\n uwu"')).toBe('uwu \n uwu')
4242
expect(parseString('"uwu \\f uwu"')).toBe('uwu \f uwu')
4343
expect(parseString('"uwu \\r uwu"')).toBe('uwu \r uwu')
44-
expect(parseString('"uwu \\e uwu"')).toBe('uwu \e uwu')
44+
expect(parseString('"uwu \\e uwu"')).toBe('uwu \x1b uwu')
4545
expect(parseString('"uwu \\" uwu"')).toBe('uwu " uwu')
4646
expect(parseString('"uwu \\\\ uwu"')).toBe('uwu \\ uwu')
4747
expect(parseString('"uwu \\x61 uwu"')).toBe('uwu a uwu')

0 commit comments

Comments
 (0)