Skip to content

Commit ad2c735

Browse files
committed
test: fix quote_
1 parent 50d35e8 commit ad2c735

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/lib/ruby-generator.test.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe('RubyGenerator', () => {
1515
describe('quote_', () => {
1616
test('escape only " to \\"', () => {
1717
const arg = '!"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~'; // eslint-disable-line
18-
const expected = '"!\\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"'; // eslint-disable-line
18+
const expected = '"!\\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"'; // eslint-disable-line
1919
expect(RubyGenerator.quote_(arg)).toEqual(expected);
2020
});
2121
});

0 commit comments

Comments
 (0)