Lawtext core references • Docs
Lawtext core references / core/src/parser/std/testHelper
core/src/parser/std/testHelper
Functions
assertELVaridity()
assertELVaridity(
el
,lawtext
?,testGap
?):void
Parameters
• el: string
| EL
• lawtext?: string
• testGap?: boolean
Returns
void
Defined in
core/src/parser/std/testHelper.ts:122 (opens in a new tab)
testLawtextToStd()
testLawtextToStd<
TEL
,TJsonEL
>(lawtextWithMarker
,expectedRendered
,expectedValue
,expectedErrorMessages
,parseLines
,toLines
):void
Type Parameters
• TJsonEL = TEL
extends EL
? JsonEL
: JsonEL
[]
Parameters
• lawtextWithMarker: string
• expectedRendered: string
• expectedValue: TJsonEL
• expectedErrorMessages: string
[]
• parseLines
• toLines
Returns
void