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 11{
22 "name" : " @lstreckeisen/context-mapper-language-server" ,
33 "description" : " Langium language server for the ContextMapper DSL" ,
4- "version" : " 0.0.2 " ,
4+ "version" : " 0.0.3 " ,
55 "license" : " Apache-2.0" ,
66 "publishConfig" : {
77 "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
77 const document = await parse ( input )
88
99 expectNoParsingErrors ( document )
10+ expect ( document . parseResult . lexerErrors ) . toHaveLength ( 0 )
11+ expect ( document . diagnostics || [ ] ) . toHaveLength ( 0 )
12+
1013 return document
1114}
1215
@@ -17,5 +20,5 @@ export async function parseInvalidInput (parse: ReturnType<typeof parseHelper<Co
1720}
1821
1922export function expectNoParsingErrors ( document : LangiumDocument < ContextMappingModel > ) {
20- expect ( document . parseResult . parserErrors . length ) . toEqual ( 0 )
23+ expect ( document . parseResult . parserErrors ) . toHaveLength ( 0 )
2124}
You can’t perform that action at this time.
0 commit comments