MCPcopy
hub / github.com/tinymce/tinymce / check

Function check

modules/polaris/src/test/ts/atomic/api/ParrayGetTest.ts:9–13  ·  view source on GitHub ↗
(expected: Optional<string>, input: string[], offset: number)

Source from the content-addressed store, hash-verified

7
8UnitTest.test('api.PositionArray.get', () => {
9 const check = (expected: Optional<string>, input: string[], offset: number) => {
10 const parray = Parrays.make(input);
11 const actual = PositionArray.get(parray, offset);
12 KAssert.eqOptional('eq', expected, actual.map((x) => x.item));
13 };
14
15 check(Optional.none(), [], 0);
16 check(Optional.some('a'), [ 'a' ], 0);

Callers 1

ParrayGetTest.tsFile · 0.70

Calls 2

mapMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…