Tengo este código:
describe('#2 - The component', () => { const state = { show: true }; it('should not render without parameter "test"', () => { expect(() => { mq(m(Notification, { toggle: () => (state.show = false), })); }).toThrow(); }); it('should not render without parameter "toggle()"', () => { expect(() => { mq(m(Notification, { text: 'I am a Bibabutzemann!', })); }).toThrow(); }); });Ambas pruebas deberían arrojar una excepción, pero solo se arroja una y jasmine termina fallando. Cuando comento una prueba, todo funciona bien.
¿Sabes por qué jasmine no puede detectar dos excepciones? ¿Tengo que restablecer algo después de que se detectó una excepción?