1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00

Measure unit test coverage of test utils

This commit is contained in:
Jake McDermott 2019-12-18 11:55:50 -05:00
parent 2f9742e9de
commit b8d6991e9d
No known key found for this signature in database
GPG Key ID: 0E56ED990CDFCB4F
2 changed files with 4 additions and 6 deletions

View File

@ -1,6 +1,7 @@
module.exports = {
collectCoverageFrom: [
'src/**/*.{js,jsx}'
'src/**/*.{js,jsx}',
'testUtils/**/*.{js,jsx}'
],
coveragePathIgnorePatterns: [
'<rootDir>/src/locales',

View File

@ -146,11 +146,8 @@ describe('waitForElement', () => {
} catch (err) {
error = err;
} finally {
expect(error).toEqual(
new Error(
'Expected condition for <#does-not-exist> not met: el => el.length === 1'
)
);
expect(error.message).toContain('Expected condition for <#does-not-exist> not met');
expect(error.message).toContain('el.length === 1');
done();
}
});