File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @lstreckeisen/context-mapper-language-server" ,
3
3
"description" : " Langium language server for the ContextMapper DSL" ,
4
- "version" : " 0.0.2 " ,
4
+ "version" : " 0.0.3 " ,
5
5
"license" : " Apache-2.0" ,
6
6
"publishConfig" : {
7
7
"registry" : " https://npm.pkg.github.com"
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ export async function parseValidInput (parse: ReturnType<typeof parseHelper<Cont
7
7
const document = await parse ( input )
8
8
9
9
expectNoParsingErrors ( document )
10
+ expect ( document . parseResult . lexerErrors ) . toHaveLength ( 0 )
11
+ expect ( document . diagnostics || [ ] ) . toHaveLength ( 0 )
12
+
10
13
return document
11
14
}
12
15
@@ -17,5 +20,5 @@ export async function parseInvalidInput (parse: ReturnType<typeof parseHelper<Co
17
20
}
18
21
19
22
export function expectNoParsingErrors ( document : LangiumDocument < ContextMappingModel > ) {
20
- expect ( document . parseResult . parserErrors . length ) . toEqual ( 0 )
23
+ expect ( document . parseResult . parserErrors ) . toHaveLength ( 0 )
21
24
}
You can’t perform that action at this time.
0 commit comments