MCPcopy Index your code
hub / github.com/mesop-dev/mesop / createDefaultComponent

Function createDefaultComponent

mesop/web/src/utils/diff_component_spec.ts:43–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41}
42
43function createDefaultComponent() {
44 const c = new Component();
45 c.setKey(createKey('key'));
46 c.setStyle(createStyle('red', '1'));
47 c.setStyleDebugJson('debug json string');
48 c.setType(createType('test'));
49 c.setSourceCodeLocation(createSourceCodeLocation('x'));
50 return c;
51}
52
53describe('applyComponentDiff functionality', () => {
54 it('applies no diffs when there are no diffs', () => {

Callers 1

Calls 4

createKeyFunction · 0.85
createStyleFunction · 0.85
createTypeFunction · 0.85
createSourceCodeLocationFunction · 0.85

Tested by

no test coverage detected