MCPcopy Index your code
hub / github.com/hizzgdev/jsmind / create_mock_node

Function create_mock_node

tests/unit/jsmind.test.js:696–708  ·  view source on GitHub ↗
(id, topic, additionalProps = {})

Source from the content-addressed store, hash-verified

694});
695
696function create_mock_node(id, topic, additionalProps = {}) {
697 return {
698 id: id,
699 topic: topic,
700 children: [],
701 isroot: false,
702 parent: null,
703 direction: 1,
704 expanded: true,
705 data: {},
706 ...additionalProps,
707 };
708}
709
710function create_fake_mind(options = {}) {
711 const defaultOptions = { container: 'container' };

Callers 1

jsmind.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected