Skip to content

Commit c64e9e2

Browse files
Pass the 'handles escaped characters in strings correctly' test case (#618)
1 parent c44629b commit c64e9e2

File tree

1 file changed

+15
-19
lines changed

1 file changed

+15
-19
lines changed

internal/tsoptions/tsconfigparsing_test.go

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -88,25 +88,21 @@ var parseConfigFileTextToJsonTests = []struct {
8888
}`,
8989
},
9090
},
91-
// { todo: fix this test
92-
// title: "handles escaped characters in strings correctly",
93-
// input: []string{
94-
// `{
95-
// "exclude": [
96-
// "xx\\"//files"
97-
// ]
98-
// }`,
99-
// `{
100-
// "exclude": [
101-
// "xx\\\\" // end of line comment
102-
// ]
103-
// }`,
104-
// },
105-
// output: []map[string]any{
106-
// {"exclude": []string{"xx\"//files"}},
107-
// {"exclude": []string{"xx\\"}},
108-
// },
109-
// },
91+
{
92+
title: "handles escaped characters in strings correctly",
93+
input: []string{
94+
`{
95+
"exclude": [
96+
"xx\"//files"
97+
]
98+
}`,
99+
`{
100+
"exclude": [
101+
"xx\\" // end of line comment
102+
]
103+
}`,
104+
},
105+
},
110106
{
111107
title: "returns object when users correctly specify library",
112108
input: []string{

0 commit comments

Comments
 (0)