diff options
Diffstat (limited to 'spec/frontend/__helpers__/matchers/to_validate_json_schema_spec.js')
-rw-r--r-- | spec/frontend/__helpers__/matchers/to_validate_json_schema_spec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/frontend/__helpers__/matchers/to_validate_json_schema_spec.js b/spec/frontend/__helpers__/matchers/to_validate_json_schema_spec.js index fd42c710c65..e6096221528 100644 --- a/spec/frontend/__helpers__/matchers/to_validate_json_schema_spec.js +++ b/spec/frontend/__helpers__/matchers/to_validate_json_schema_spec.js @@ -38,7 +38,7 @@ describe('custom matcher toValidateJsonSchema', () => { }); it('throws if not matching', () => { - expect(() => expect(null).toValidateJsonSchema(schema)).toThrowError( + expect(() => expect(null).toValidateJsonSchema(schema)).toThrow( `Expected the given data to pass the schema validation, but found that it was considered invalid. Errors: Error with item : must be object`, ); @@ -57,7 +57,7 @@ Error with item : must be object`, }); it('throws if matching', () => { - expect(() => expect({ fruit: 'apple' }).not.toValidateJsonSchema(schema)).toThrowError( + expect(() => expect({ fruit: 'apple' }).not.toValidateJsonSchema(schema)).toThrow( 'Expected the given data not to pass the schema validation, but found that it was considered valid.', ); }); |