Skip to content

Commit

Permalink
Refactored tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ogurecher committed Aug 10, 2020
1 parent 90fc25f commit 2c33926
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions test/server/test-run-error-formatting-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,20 +279,13 @@ describe('Error formatting', () => {
});

it('Should not throw if the specified decorator was not found', () => {
const errorList = [];

try {
expect(() => {
const error = new ExternalAssertionLibraryError(testAssertionErrorArray, testCallsite);

error.diff = '<div class="unknown-decorator">text</div>';

getErrorAdapter(error).formatMessage('', 100);
}
catch (e) {
errorList.push(e);
}

expect(errorList.length).eql(0);
}).to.not.throw();
});

it('Should format "actionIntegerOptionError" message', () => {
Expand Down

0 comments on commit 2c33926

Please sign in to comment.