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