mirror of
https://github.com/motajs/template.git
synced 2026-09-12 09:48:49 +08:00
test(01-07): cover complete event mode matrix
- Verify unmatched triggers do not affect cut or reduction results. - Cover unknown ids, hook trigger mapping, coordinates, and source environments.
This commit is contained in:
parent
22056140bd
commit
ff41ab3d6c
@ -346,6 +346,18 @@ describe('event execute modes and reductions', () => {
|
||||
{ custom: {} }
|
||||
)
|
||||
).resolves.toBe(false);
|
||||
fixture.executor.setReduce(modules.EventReduceMode.OrReduce);
|
||||
await expect(
|
||||
fixture.executor.execute([invocation('wrong-trigger', enter)], {
|
||||
custom: {}
|
||||
})
|
||||
).resolves.toBe(false);
|
||||
fixture.executor.setReduce(modules.EventReduceMode.AndReduce);
|
||||
await expect(
|
||||
fixture.executor.execute([invocation('wrong-trigger', enter)], {
|
||||
custom: {}
|
||||
})
|
||||
).resolves.toBe(true);
|
||||
});
|
||||
|
||||
it('warns for unknown ids and continues with valid events', async () => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user