Skip to content

Commit e6c6b04

Browse files
authored
test(fixtures): update snapshots (#154)
1 parent 2497b1a commit e6c6b04

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

tests/__snapshots__/fixtures.test.ts.snap

+34-34
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ exports[`fixtures (JSON) "slots-named/input.svelte" 1`] = `
2222
"name": "text",
2323
"kind": "let",
2424
"type": "string",
25-
"value": "\"\"",
25+
"value": "\\"\\"",
2626
"isFunction": false,
2727
"isFunctionDeclaration": false,
2828
"isRequired": false,
@@ -105,9 +105,9 @@ exports[`fixtures (JSON) "generics-multiple/input.svelte" 1`] = `
105105
"ts": "interface DataTableRow { id: string | number; [key: string]: any; }"
106106
},
107107
{
108-
"type": "Exclude<keyof Row, \"id\">",
108+
"type": "Exclude<keyof Row, \\"id\\">",
109109
"name": "DataTableKey<Row>",
110-
"ts": "type DataTableKey<Row> = Exclude<keyof Row, \"id\">"
110+
"ts": "type DataTableKey<Row> = Exclude<keyof Row, \\"id\\">"
111111
},
112112
{
113113
"type": "{ key: DataTableKey<Row>; value: Header; }",
@@ -284,7 +284,7 @@ exports[`fixtures (JSON) "infer-basic/input.svelte" 1`] = `
284284
"name": "propString",
285285
"kind": "let",
286286
"type": "string",
287-
"value": "\"\"",
287+
"value": "\\"\\"",
288288
"isFunction": false,
289289
"isFunctionDeclaration": false,
290290
"isRequired": false,
@@ -304,7 +304,7 @@ exports[`fixtures (JSON) "infer-basic/input.svelte" 1`] = `
304304
"name": "id",
305305
"kind": "let",
306306
"type": "string",
307-
"value": "\"\" + Math.random().toString(36)",
307+
"value": "\\"\\" + Math.random().toString(36)",
308308
"isFunction": false,
309309
"isFunctionDeclaration": false,
310310
"isRequired": false,
@@ -314,8 +314,8 @@ exports[`fixtures (JSON) "infer-basic/input.svelte" 1`] = `
314314
{
315315
"name": "propConst",
316316
"kind": "const",
317-
"type": "{ [\"1\"]: true }",
318-
"value": "{ [\"1\"]: true }",
317+
"type": "{ [\\"1\\"]: true }",
318+
"value": "{ [\\"1\\"]: true }",
319319
"isFunction": false,
320320
"isFunctionDeclaration": false,
321321
"isRequired": false,
@@ -439,7 +439,7 @@ exports[`fixtures (JSON) "typedefs/input.svelte" 1`] = `
439439
"name": "prop1",
440440
"kind": "let",
441441
"type": "MyTypedef",
442-
"value": "{ [\"1\"]: true }",
442+
"value": "{ [\\"1\\"]: true }",
443443
"isFunction": false,
444444
"isFunctionDeclaration": false,
445445
"isRequired": false,
@@ -525,9 +525,9 @@ exports[`fixtures (JSON) "generics-with-rest-props/input.svelte" 1`] = `
525525
"ts": "interface DataTableRow { id: string | number; [key: string]: any; }"
526526
},
527527
{
528-
"type": "Exclude<keyof Row, \"id\">",
528+
"type": "Exclude<keyof Row, \\"id\\">",
529529
"name": "DataTableKey<Row>",
530-
"ts": "type DataTableKey<Row> = Exclude<keyof Row, \"id\">"
530+
"ts": "type DataTableKey<Row> = Exclude<keyof Row, \\"id\\">"
531531
},
532532
{
533533
"type": "{ key: DataTableKey<Row>; value: string; }",
@@ -648,7 +648,7 @@ exports[`fixtures (JSON) "required/input.svelte" 1`] = `
648648
{
649649
"name": "prop1",
650650
"kind": "let",
651-
"description": "This is a comment.\n@required ",
651+
"description": "This is a comment.\\n@required ",
652652
"type": "boolean | string",
653653
"value": "true",
654654
"isFunction": false,
@@ -697,7 +697,7 @@ exports[`fixtures (JSON) "prop-comments/input.svelte" 1`] = `
697697
{
698698
"name": "prop",
699699
"kind": "let",
700-
"description": "This is a comment.\n@see https://github.com/\n@deprecated this prop will be removed in the next major release.",
700+
"description": "This is a comment.\\n@see https://github.com/\\n@deprecated this prop will be removed in the next major release.",
701701
"type": "boolean | string",
702702
"value": "true",
703703
"isFunction": false,
@@ -753,7 +753,7 @@ exports[`fixtures (JSON) "renamed-props/input.svelte" 1`] = `
753753
"kind": "let",
754754
"description": "Just your average CSS class string.",
755755
"type": "string|null",
756-
"value": "\"test\"",
756+
"value": "\\"test\\"",
757757
"isFunction": false,
758758
"isFunctionDeclaration": false,
759759
"isRequired": false,
@@ -787,7 +787,7 @@ exports[`fixtures (JSON) "infer-with-types/input.svelte" 1`] = `
787787
"name": "propString",
788788
"kind": "let",
789789
"type": "string",
790-
"value": "\"\"",
790+
"value": "\\"\\"",
791791
"isFunction": false,
792792
"isFunctionDeclaration": false,
793793
"isRequired": false,
@@ -808,7 +808,7 @@ exports[`fixtures (JSON) "infer-with-types/input.svelte" 1`] = `
808808
"name": "id",
809809
"kind": "let",
810810
"type": "string",
811-
"value": "\"\" + Math.random().toString(36)",
811+
"value": "\\"\\" + Math.random().toString(36)",
812812
"isFunction": false,
813813
"isFunctionDeclaration": false,
814814
"isRequired": false,
@@ -819,7 +819,7 @@ exports[`fixtures (JSON) "infer-with-types/input.svelte" 1`] = `
819819
"name": "propConst",
820820
"kind": "const",
821821
"type": "{ [key: string]: boolean; }",
822-
"value": "{ [\"1\"]: true }",
822+
"value": "{ [\\"1\\"]: true }",
823823
"isFunction": false,
824824
"isFunctionDeclaration": false,
825825
"isRequired": false,
@@ -860,7 +860,7 @@ exports[`fixtures (JSON) "context-module/input.svelte" 1`] = `
860860
"name": "a",
861861
"kind": "const",
862862
"type": "string",
863-
"value": "\"\"",
863+
"value": "\\"\\"",
864864
"isFunction": false,
865865
"isFunctionDeclaration": false,
866866
"isRequired": false,
@@ -873,7 +873,7 @@ exports[`fixtures (JSON) "context-module/input.svelte" 1`] = `
873873
"name": "bool",
874874
"kind": "const",
875875
"type": "string",
876-
"value": "\"\"",
876+
"value": "\\"\\"",
877877
"isFunction": false,
878878
"isFunctionDeclaration": false,
879879
"isRequired": false,
@@ -962,8 +962,8 @@ exports[`fixtures (JSON) "rest-props-multiple/input.svelte" 1`] = `
962962
{
963963
"name": "type",
964964
"kind": "let",
965-
"type": " \"ordered\" | \"unordered\" ",
966-
"value": "\"ordered\"",
965+
"type": " \\"ordered\\" | \\"unordered\\" ",
966+
"value": "\\"ordered\\"",
967967
"isFunction": false,
968968
"isFunctionDeclaration": false,
969969
"isRequired": false,
@@ -1068,7 +1068,7 @@ exports[`fixtures (JSON) "typedef/input.svelte" 1`] = `
10681068
"name": "id",
10691069
"kind": "let",
10701070
"type": "string",
1071-
"value": "\"id-\" + Math.random().toString(36)",
1071+
"value": "\\"id-\\" + Math.random().toString(36)",
10721072
"isFunction": false,
10731073
"isFunctionDeclaration": false,
10741074
"isRequired": false,
@@ -1079,7 +1079,7 @@ exports[`fixtures (JSON) "typedef/input.svelte" 1`] = `
10791079
"name": "prop1",
10801080
"kind": "let",
10811081
"type": "MyTypedef",
1082-
"value": "{ [\"1\"]: true }",
1082+
"value": "{ [\\"1\\"]: true }",
10831083
"isFunction": false,
10841084
"isFunctionDeclaration": false,
10851085
"isRequired": false,
@@ -1157,7 +1157,7 @@ exports[`fixtures (JSON) "component-comment-multi/input.svelte" 1`] = `
11571157
"events": [],
11581158
"typedefs": [],
11591159
"generics": null,
1160-
"componentComment": "\n@example\n<div>\n Component comment\n</div>"
1160+
"componentComment": "\\n@example\\n<div>\\n Component comment\\n</div>"
11611161
}"
11621162
`;
11631163

@@ -1213,7 +1213,7 @@ exports[`fixtures (JSON) "typed-props/input.svelte" 1`] = `
12131213
{
12141214
"name": "prop1",
12151215
"kind": "let",
1216-
"description": "prop1 description 1\nprop1 description 2",
1216+
"description": "prop1 description 1\\nprop1 description 2",
12171217
"type": "string",
12181218
"isFunction": false,
12191219
"isFunctionDeclaration": false,
@@ -1224,7 +1224,7 @@ exports[`fixtures (JSON) "typed-props/input.svelte" 1`] = `
12241224
{
12251225
"name": "prop2",
12261226
"kind": "let",
1227-
"description": "prop2 description 1\nprop2 description 2",
1227+
"description": "prop2 description 1\\nprop2 description 2",
12281228
"value": "null",
12291229
"isFunction": false,
12301230
"isFunctionDeclaration": false,
@@ -1246,8 +1246,8 @@ exports[`fixtures (JSON) "typed-props/input.svelte" 1`] = `
12461246
{
12471247
"name": "prop4",
12481248
"kind": "let",
1249-
"type": "\"red\" | \"blue\"",
1250-
"value": "\"red\"",
1249+
"type": "\\"red\\" | \\"blue\\"",
1250+
"value": "\\"red\\"",
12511251
"isFunction": false,
12521252
"isFunctionDeclaration": false,
12531253
"isRequired": false,
@@ -1305,9 +1305,9 @@ exports[`fixtures (JSON) "generics/input.svelte" 1`] = `
13051305
"ts": "interface DataTableRow { id: string | number; [key: string]: any; }"
13061306
},
13071307
{
1308-
"type": "Exclude<keyof Row, \"id\">",
1308+
"type": "Exclude<keyof Row, \\"id\\">",
13091309
"name": "DataTableKey<Row>",
1310-
"ts": "type DataTableKey<Row> = Exclude<keyof Row, \"id\">"
1310+
"ts": "type DataTableKey<Row> = Exclude<keyof Row, \\"id\\">"
13111311
},
13121312
{
13131313
"type": "{ key: DataTableKey<Row>; value: string; }",
@@ -1329,7 +1329,7 @@ import type { SvelteHTMLElements } from "svelte/elements";
13291329
type $RestProps = SvelteHTMLElements["svg"];
13301330
13311331
type $Props = {
1332-
[key: \`data-${string}\`]: any;
1332+
[key: \`data-\${string}\`]: any;
13331333
};
13341334
13351335
export type SvgPropsProps = Omit<$RestProps, keyof $Props> & $Props;
@@ -1610,7 +1610,7 @@ type $Props<Row> = {
16101610
*/
16111611
rows?: ReadonlyArray<Row>;
16121612
1613-
[key: \`data-${string}\`]: any;
1613+
[key: \`data-\${string}\`]: any;
16141614
};
16151615
16161616
export type GenericsWithRestPropsProps<Row> = Omit<$RestProps, keyof $Props<Row>> & $Props<Row>;
@@ -1830,7 +1830,7 @@ type $Props = {
18301830
*/
18311831
type?: "ordered" | "unordered";
18321832
1833-
[key: \`data-${string}\`]: any;
1833+
[key: \`data-\${string}\`]: any;
18341834
};
18351835
18361836
export type RestPropsMultipleProps = Omit<$RestProps, keyof $Props> & $Props;
@@ -1924,7 +1924,7 @@ import type { SvelteHTMLElements } from "svelte/elements";
19241924
type $RestProps = SvelteHTMLElements["h1"];
19251925
19261926
type $Props = {
1927-
[key: \`data-${string}\`]: any;
1927+
[key: \`data-\${string}\`]: any;
19281928
};
19291929
19301930
export type RestPropsSimpleProps = Omit<$RestProps, keyof $Props> & $Props;
@@ -1940,7 +1940,7 @@ import type { SvelteHTMLElements } from "svelte/elements";
19401940
type $RestProps = SvelteHTMLElements["a"];
19411941
19421942
type $Props = {
1943-
[key: \`data-${string}\`]: any;
1943+
[key: \`data-\${string}\`]: any;
19441944
};
19451945
19461946
export type AnchorPropsProps = Omit<$RestProps, keyof $Props> & $Props;

0 commit comments

Comments
 (0)