Skip to content

Commit

Permalink
fix: change initialised to initialized (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilebottnawi authored Jan 17, 2020
1 parent 669ef56 commit 70f12d3
Show file tree
Hide file tree
Showing 3 changed files with 304 additions and 304 deletions.
2 changes: 1 addition & 1 deletion src/ValidationError.js
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ class ValidationError extends Error {

const header = `Invalid ${this.baseDataPath} object. ${
this.headerName
} has been initialised using ${getArticle(this.baseDataPath)} ${
} has been initialized using ${getArticle(this.baseDataPath)} ${
this.baseDataPath
} object that does not match the API schema.\n`;

Expand Down
10 changes: 5 additions & 5 deletions test/__snapshots__/api.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`api should get configuration from schema 1`] = `
"Invalid options object. CSS Loader has been initialised using an options object that does not match the API schema.
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
- options has an unknown property 'foo'. These properties are valid:
object { name? }"
`;
exports[`api should prefer configuration over "title" #1 1`] = `
"Invalid options object. NAME has been initialised using an options object that does not match the API schema.
"Invalid options object. NAME has been initialized using an options object that does not match the API schema.
- options has an unknown property 'foo'. These properties are valid:
object { name? }"
`;
exports[`api should prefer configuration over "title" #2 1`] = `
"Invalid BaseDataPath object. CSS Loader has been initialised using a BaseDataPath object that does not match the API schema.
"Invalid BaseDataPath object. CSS Loader has been initialized using a BaseDataPath object that does not match the API schema.
- BaseDataPath has an unknown property 'foo'. These properties are valid:
object { name? }"
`;
exports[`api should prefer configuration over "title" 1`] = `
"Invalid BaseDataPath object. NAME has been initialised using a BaseDataPath object that does not match the API schema.
"Invalid BaseDataPath object. NAME has been initialized using a BaseDataPath object that does not match the API schema.
- BaseDataPath has an unknown property 'foo'. These properties are valid:
object { name? }"
`;
exports[`api should use default values when "title" is broken 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
"Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
- configuration has an unknown property 'foo'. These properties are valid:
object { name? }"
`;
Loading

0 comments on commit 70f12d3

Please sign in to comment.