({ configObjects })
| 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, { |
no outgoing calls
no test coverage detected
searching dependent graphs…