(scenario)
| 992 | }; |
| 993 | |
| 994 | export function driver(scenario) { |
| 995 | let name = scenario.id.slice(scenario.fixture.length + 1); |
| 996 | let fixture = drivers[scenario.fixture]; |
| 997 | let action = fixture?.actions[name]; |
| 998 | if (!action || scenario.id !== `${scenario.fixture}.${name}`) { |
| 999 | throw new Error(`Unknown scenario: ${scenario.id}`); |
| 1000 | } |
| 1001 | return {fixture, action, name}; |
| 1002 | } |
no test coverage detected