MCPcopy Create free account
hub / github.com/ckeditor/ckeditor5-react / pickConfigEntry

Function pickConfigEntry

tests/context/ckeditorcontext.test.tsx:218–218  ·  view source on GitHub ↗
( callArgs: any )

Source from the content-addressed store, hash-verified

216 const calls = editorCreateSpy.mock.calls as any;
217
218 const pickConfigEntry = ( callArgs: any ) => callArgs[ 1 ] ?? callArgs[ 0 ];
219 const pickInitialData = ( config: any ) => config.initialData ?? config.roots?.main?.initialData;
220
221 expect( pickInitialData( pickConfigEntry( calls[ 0 ] ) ) ).to.equal( '<p>Foo</p>' );

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…