stable
Clone or download
Read-only
In 88b08fb2fa224a7838fab583f4f70244b07a0719, some fail() calls have been removed while doing the conversion from Jasmine to Jest. Those calls should not have been completely removed as it means that a test can now pass even if the code broken. Jest does not have a direct fail() equivalent to Jasmine's done.fail(), the idiomatic way to achieve that is to assert the number of expected assertions [0]. [0] https://jestjs.io/docs/en/asynchronous.html#async-await Part of request #13806: Use Jest as the default test framework for JS unit tests Change-Id: I4bc8ac94717dacf646ea3197d1f2141972eb7e45
Modified Files
Name | ||||
---|---|---|---|---|
M | src/www/scripts/tuleap/ckeditor/file-upload-handler-factory.test.js | +6 | −0 | Go to diff View file |