Library
core
src
parser
std
testHelper
Readme

Lawtext core referencesDocs


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

TEL extends EL | EL[]

TJsonEL = TEL extends EL ? JsonEL : JsonEL[]

Parameters

lawtextWithMarker: string

expectedRendered: string

expectedValue: TJsonEL

expectedErrorMessages: string[]

parseLines

toLines

Returns

void

Defined in

core/src/parser/std/testHelper.ts:17 (opens in a new tab)