@@ -13,8 +13,8 @@ import {
13
13
ParseStateUtils ,
14
14
RecursiveDescentParser ,
15
15
} from "../../../powerquery-parser/parser" ;
16
+ import { AssertTestUtils } from "../../testUtils" ;
16
17
import { Ast } from "../../../powerquery-parser/language" ;
17
- import { TestAssertUtils } from "../../testUtils" ;
18
18
19
19
const DefaultSettingsWithStrict : Settings = {
20
20
...DefaultSettings ,
@@ -30,7 +30,7 @@ const DefaultSettingsWithStrict: Settings = {
30
30
31
31
async function assertGetCsvContinuationError ( text : string ) : Promise < ParseError . ExpectedCsvContinuationError > {
32
32
const innerError : ParseError . TInnerParseError = (
33
- await TestAssertUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
33
+ await AssertTestUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
34
34
) . innerError ;
35
35
36
36
Assert . isTrue (
@@ -46,7 +46,7 @@ describe("Parser.Error", () => {
46
46
const text : string = "(optional x, y) => x" ;
47
47
48
48
const innerError : ParseError . TInnerParseError = (
49
- await TestAssertUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
49
+ await AssertTestUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
50
50
) . innerError ;
51
51
52
52
expect ( innerError instanceof ParseError . RequiredParameterAfterOptionalParameterError ) . to . equal (
@@ -59,7 +59,7 @@ describe("Parser.Error", () => {
59
59
const text : string = "let x = [" ;
60
60
61
61
const innerError : ParseError . TInnerParseError = (
62
- await TestAssertUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
62
+ await AssertTestUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
63
63
) . innerError ;
64
64
65
65
expect ( innerError instanceof ParseError . UnterminatedSequence ) . to . equal ( true , innerError . message ) ;
@@ -74,7 +74,7 @@ describe("Parser.Error", () => {
74
74
const text : string = "let x = (1" ;
75
75
76
76
const innerError : ParseError . TInnerParseError = (
77
- await TestAssertUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
77
+ await AssertTestUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
78
78
) . innerError ;
79
79
80
80
expect ( innerError instanceof ParseError . UnterminatedSequence ) . to . equal ( true , innerError . message ) ;
@@ -90,7 +90,7 @@ describe("Parser.Error", () => {
90
90
const text : string = "1 1" ;
91
91
92
92
const innerError : ParseError . TInnerParseError = (
93
- await TestAssertUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
93
+ await AssertTestUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
94
94
) . innerError ;
95
95
96
96
expect ( innerError instanceof ParseError . UnusedTokensRemainError ) . to . equal ( true , innerError . message ) ;
@@ -108,7 +108,7 @@ describe("Parser.Error", () => {
108
108
const text : string = "a b" ;
109
109
110
110
const innerError : ParseError . TInnerParseError = (
111
- await TestAssertUtils . assertGetParseError ( customSettings , text )
111
+ await AssertTestUtils . assertGetParseError ( customSettings , text )
112
112
) . innerError ;
113
113
114
114
expect ( innerError instanceof ParseError . UnusedTokensRemainError ) . to . equal ( true , innerError . message ) ;
@@ -227,7 +227,7 @@ describe("Parser.Error", () => {
227
227
const text : string = "let foo = 1 bar = 1 in foo + bar" ;
228
228
229
229
const innerError : ParseError . TInnerParseError = (
230
- await TestAssertUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
230
+ await AssertTestUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
231
231
) . innerError ;
232
232
233
233
expect ( innerError instanceof ParseError . ExpectedClosingTokenKind ) . to . equal ( true , innerError . message ) ;
@@ -237,7 +237,7 @@ describe("Parser.Error", () => {
237
237
const text : string = "{1 2}" ;
238
238
239
239
const innerError : ParseError . TInnerParseError = (
240
- await TestAssertUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
240
+ await AssertTestUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
241
241
) . innerError ;
242
242
243
243
expect ( innerError instanceof ParseError . ExpectedClosingTokenKind ) . to . equal ( true , innerError . message ) ;
@@ -247,7 +247,7 @@ describe("Parser.Error", () => {
247
247
const text : string = "[foo = 1 bar = 1]" ;
248
248
249
249
const innerError : ParseError . TInnerParseError = (
250
- await TestAssertUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
250
+ await AssertTestUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
251
251
) . innerError ;
252
252
253
253
expect ( innerError instanceof ParseError . ExpectedClosingTokenKind ) . to . equal ( true , innerError . message ) ;
@@ -257,7 +257,7 @@ describe("Parser.Error", () => {
257
257
const text : string = "[foo = 1 bar = 2]section baz;" ;
258
258
259
259
const innerError : ParseError . TInnerParseError = (
260
- await TestAssertUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
260
+ await AssertTestUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
261
261
) . innerError ;
262
262
263
263
expect ( innerError instanceof ParseError . ExpectedClosingTokenKind ) . to . equal ( true , innerError . message ) ;
@@ -267,7 +267,7 @@ describe("Parser.Error", () => {
267
267
const text : string = "type [foo = number bar = number]" ;
268
268
269
269
const innerError : ParseError . TInnerParseError = (
270
- await TestAssertUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
270
+ await AssertTestUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
271
271
) . innerError ;
272
272
273
273
expect ( innerError instanceof ParseError . ExpectedClosingTokenKind ) . to . equal ( true , innerError . message ) ;
@@ -277,7 +277,7 @@ describe("Parser.Error", () => {
277
277
const text : string = "type table [a = 1 b = 2]" ;
278
278
279
279
const innerError : ParseError . TInnerParseError = (
280
- await TestAssertUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
280
+ await AssertTestUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
281
281
) . innerError ;
282
282
283
283
expect ( innerError instanceof ParseError . ExpectedClosingTokenKind ) . to . equal ( true , innerError . message ) ;
@@ -288,7 +288,7 @@ describe("Parser.Error", () => {
288
288
const text : string = `try 1 catch (x as number) => 0` ;
289
289
290
290
const innerError : ParseError . TInnerParseError = (
291
- await TestAssertUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
291
+ await AssertTestUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
292
292
) . innerError ;
293
293
294
294
expect ( innerError instanceof ParseError . InvalidCatchFunctionError ) . to . equal ( true , innerError . message ) ;
@@ -298,7 +298,7 @@ describe("Parser.Error", () => {
298
298
const text : string = `try 1 catch (x) as number => 0` ;
299
299
300
300
const innerError : ParseError . TInnerParseError = (
301
- await TestAssertUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
301
+ await AssertTestUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
302
302
) . innerError ;
303
303
304
304
expect ( innerError instanceof ParseError . InvalidCatchFunctionError ) . to . equal ( true , innerError . message ) ;
@@ -308,7 +308,7 @@ describe("Parser.Error", () => {
308
308
const text : string = `try 1 catch (x, y) => 0` ;
309
309
310
310
const innerError : ParseError . TInnerParseError = (
311
- await TestAssertUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
311
+ await AssertTestUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
312
312
) . innerError ;
313
313
314
314
expect ( innerError instanceof ParseError . InvalidCatchFunctionError ) . to . equal ( true , innerError . message ) ;
0 commit comments