( listener: Listener, id: Id, ...expectedChanges: any[] )
| 24 | }; |
| 25 | |
| 26 | export const expectChangesNoJson = ( |
| 27 | listener: Listener, |
| 28 | id: Id, |
| 29 | ...expectedChanges: any[] |
| 30 | ): void => { |
| 31 | const log: any[] = listener.logs[id]; |
| 32 | expectedChanges.forEach((expectedChange) => |
| 33 | expect(log.shift()).toEqual(expectedChange), |
| 34 | ); |
| 35 | }; |
| 36 | |
| 37 | export const expectNoChanges = (listener: Listener): void => { |
| 38 | Object.values(listener.logs).forEach((log) => expect(log).toHaveLength(0)); |
no outgoing calls
no test coverage detected
searching dependent graphs…