MCPcopy
hub / github.com/mozilla/web-ext / makeConfigLoader

Function makeConfigLoader

tests/unit/test.program.js:436–444  ·  view source on GitHub ↗
({ configObjects })

Source from the content-addressed store, hash-verified

434 }
435
436 function makeConfigLoader({ configObjects }) {
437 return (fileName) => {
438 const conf = configObjects[fileName];
439 if (!conf) {
440 throw new Error(`Config file was not mapped: ${fileName}`);
441 }
442 return conf;
443 };
444 }
445
446 it('executes a command handler', () => {
447 const fakeCommands = fake(commands, {

Callers 1

test.program.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…