Jest test passes although should have failed

后端 未结 0 988
情深已故
情深已故 2021-01-11 20:16

I\'ve created the following test:

test(\'Should fail\', () => {
    expect(() => {
        ....
    }).toThrow(\'f\');
});

The test its

相关标签:
回答
  • 消灭零回复
提交回复
热议问题