Skip to content

Commit 24875eb

Browse files
committed
Improve test maintainability
1 parent 4496f52 commit 24875eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reporter/index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ describe('Reporter', () => {
4545

4646
expect(() => {
4747
Reporter.validateConfiguration(repositories);
48-
}).to.throw('Required configuration key "reporter.repositories.declarations" was not found; issues on the declarations repository cannot be created');
48+
}).to.throw().and.have.property('message').that.match(/Required configuration key.*was not found/);
4949
});
5050
});
5151

0 commit comments

Comments
 (0)