Skip to content

Commit 26c30d4

Browse files
committed
update tests to match
1 parent 9882459 commit 26c30d4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/quotes.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,31 +33,31 @@ test('default quote type is single', () => {
3333
test('single quotes used when single quote type provided', () => {
3434
const ast = load(test_code);
3535
clean(ast);
36-
const code = print(ast, { quote: 'single' }).code;
36+
const code = print(ast, { quotes: 'single' }).code;
3737

3838
expect(code).toMatchInlineSnapshot(`"const foo = 'bar';"`);
3939
});
4040

4141
test('double quotes used when double quote type provided', () => {
4242
const ast = load(test_code);
4343
clean(ast);
44-
const code = print(ast, { quote: 'double' }).code;
44+
const code = print(ast, { quotes: 'double' }).code;
4545

4646
expect(code).toMatchInlineSnapshot(`"const foo = "bar";"`);
4747
});
4848

4949
test('escape single quotes if present in string literal', () => {
5050
const ast = load('const foo = "b\'ar"');
5151
clean(ast);
52-
const code = print(ast, { quote: 'single' }).code;
52+
const code = print(ast, { quotes: 'single' }).code;
5353

5454
expect(code).toMatchInlineSnapshot(`"const foo = 'b\\'ar';"`);
5555
});
5656

5757
test('escape double quotes if present in string literal', () => {
5858
const ast = load("const foo = 'b\"ar'");
5959
clean(ast);
60-
const code = print(ast, { quote: 'double' }).code;
60+
const code = print(ast, { quotes: 'double' }).code;
6161

6262
expect(code).toMatchInlineSnapshot(`"const foo = "b\\"ar";"`);
6363
});

0 commit comments

Comments
 (0)