@@ -13,8 +13,8 @@ import {
1313 ParseStateUtils ,
1414 RecursiveDescentParser ,
1515} from "../../../powerquery-parser/parser" ;
16+ import { AssertTestUtils } from "../../testUtils" ;
1617import { Ast } from "../../../powerquery-parser/language" ;
17- import { TestAssertUtils } from "../../testUtils" ;
1818
1919const DefaultSettingsWithStrict : Settings = {
2020 ...DefaultSettings ,
@@ -30,7 +30,7 @@ const DefaultSettingsWithStrict: Settings = {
3030
3131async function assertGetCsvContinuationError ( text : string ) : Promise < ParseError . ExpectedCsvContinuationError > {
3232 const innerError : ParseError . TInnerParseError = (
33- await TestAssertUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
33+ await AssertTestUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
3434 ) . innerError ;
3535
3636 Assert . isTrue (
@@ -46,7 +46,7 @@ describe("Parser.Error", () => {
4646 const text : string = "(optional x, y) => x" ;
4747
4848 const innerError : ParseError . TInnerParseError = (
49- await TestAssertUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
49+ await AssertTestUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
5050 ) . innerError ;
5151
5252 expect ( innerError instanceof ParseError . RequiredParameterAfterOptionalParameterError ) . to . equal (
@@ -59,7 +59,7 @@ describe("Parser.Error", () => {
5959 const text : string = "let x = [" ;
6060
6161 const innerError : ParseError . TInnerParseError = (
62- await TestAssertUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
62+ await AssertTestUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
6363 ) . innerError ;
6464
6565 expect ( innerError instanceof ParseError . UnterminatedSequence ) . to . equal ( true , innerError . message ) ;
@@ -74,7 +74,7 @@ describe("Parser.Error", () => {
7474 const text : string = "let x = (1" ;
7575
7676 const innerError : ParseError . TInnerParseError = (
77- await TestAssertUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
77+ await AssertTestUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
7878 ) . innerError ;
7979
8080 expect ( innerError instanceof ParseError . UnterminatedSequence ) . to . equal ( true , innerError . message ) ;
@@ -90,7 +90,7 @@ describe("Parser.Error", () => {
9090 const text : string = "1 1" ;
9191
9292 const innerError : ParseError . TInnerParseError = (
93- await TestAssertUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
93+ await AssertTestUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
9494 ) . innerError ;
9595
9696 expect ( innerError instanceof ParseError . UnusedTokensRemainError ) . to . equal ( true , innerError . message ) ;
@@ -108,7 +108,7 @@ describe("Parser.Error", () => {
108108 const text : string = "a b" ;
109109
110110 const innerError : ParseError . TInnerParseError = (
111- await TestAssertUtils . assertGetParseError ( customSettings , text )
111+ await AssertTestUtils . assertGetParseError ( customSettings , text )
112112 ) . innerError ;
113113
114114 expect ( innerError instanceof ParseError . UnusedTokensRemainError ) . to . equal ( true , innerError . message ) ;
@@ -227,7 +227,7 @@ describe("Parser.Error", () => {
227227 const text : string = "let foo = 1 bar = 1 in foo + bar" ;
228228
229229 const innerError : ParseError . TInnerParseError = (
230- await TestAssertUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
230+ await AssertTestUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
231231 ) . innerError ;
232232
233233 expect ( innerError instanceof ParseError . ExpectedClosingTokenKind ) . to . equal ( true , innerError . message ) ;
@@ -237,7 +237,7 @@ describe("Parser.Error", () => {
237237 const text : string = "{1 2}" ;
238238
239239 const innerError : ParseError . TInnerParseError = (
240- await TestAssertUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
240+ await AssertTestUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
241241 ) . innerError ;
242242
243243 expect ( innerError instanceof ParseError . ExpectedClosingTokenKind ) . to . equal ( true , innerError . message ) ;
@@ -247,7 +247,7 @@ describe("Parser.Error", () => {
247247 const text : string = "[foo = 1 bar = 1]" ;
248248
249249 const innerError : ParseError . TInnerParseError = (
250- await TestAssertUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
250+ await AssertTestUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
251251 ) . innerError ;
252252
253253 expect ( innerError instanceof ParseError . ExpectedClosingTokenKind ) . to . equal ( true , innerError . message ) ;
@@ -257,7 +257,7 @@ describe("Parser.Error", () => {
257257 const text : string = "[foo = 1 bar = 2]section baz;" ;
258258
259259 const innerError : ParseError . TInnerParseError = (
260- await TestAssertUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
260+ await AssertTestUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
261261 ) . innerError ;
262262
263263 expect ( innerError instanceof ParseError . ExpectedClosingTokenKind ) . to . equal ( true , innerError . message ) ;
@@ -267,7 +267,7 @@ describe("Parser.Error", () => {
267267 const text : string = "type [foo = number bar = number]" ;
268268
269269 const innerError : ParseError . TInnerParseError = (
270- await TestAssertUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
270+ await AssertTestUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
271271 ) . innerError ;
272272
273273 expect ( innerError instanceof ParseError . ExpectedClosingTokenKind ) . to . equal ( true , innerError . message ) ;
@@ -277,7 +277,7 @@ describe("Parser.Error", () => {
277277 const text : string = "type table [a = 1 b = 2]" ;
278278
279279 const innerError : ParseError . TInnerParseError = (
280- await TestAssertUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
280+ await AssertTestUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
281281 ) . innerError ;
282282
283283 expect ( innerError instanceof ParseError . ExpectedClosingTokenKind ) . to . equal ( true , innerError . message ) ;
@@ -288,7 +288,7 @@ describe("Parser.Error", () => {
288288 const text : string = `try 1 catch (x as number) => 0` ;
289289
290290 const innerError : ParseError . TInnerParseError = (
291- await TestAssertUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
291+ await AssertTestUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
292292 ) . innerError ;
293293
294294 expect ( innerError instanceof ParseError . InvalidCatchFunctionError ) . to . equal ( true , innerError . message ) ;
@@ -298,7 +298,7 @@ describe("Parser.Error", () => {
298298 const text : string = `try 1 catch (x) as number => 0` ;
299299
300300 const innerError : ParseError . TInnerParseError = (
301- await TestAssertUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
301+ await AssertTestUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
302302 ) . innerError ;
303303
304304 expect ( innerError instanceof ParseError . InvalidCatchFunctionError ) . to . equal ( true , innerError . message ) ;
@@ -308,7 +308,7 @@ describe("Parser.Error", () => {
308308 const text : string = `try 1 catch (x, y) => 0` ;
309309
310310 const innerError : ParseError . TInnerParseError = (
311- await TestAssertUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
311+ await AssertTestUtils . assertGetParseError ( DefaultSettingsWithStrict , text )
312312 ) . innerError ;
313313
314314 expect ( innerError instanceof ParseError . InvalidCatchFunctionError ) . to . equal ( true , innerError . message ) ;
0 commit comments