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

Function pickInitialData

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

Source from the content-addressed store, hash-verified

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>' );
222 expect( pickInitialData( pickConfigEntry( calls[ 1 ] ) ) ).to.equal( '<p>Bar</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…