Skip to content
This repository has been archived by the owner on Oct 27, 2020. It is now read-only.

Commit

Permalink
fix: wrong option descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Jannik Zschiesche authored and evilebottnawi committed Jan 16, 2020
1 parent 3371562 commit 4e0e3ae
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 55 deletions.
133 changes: 82 additions & 51 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/options.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
"instanceof": "Function"
},
"cacheIdentifier": {
"description": "Provide a cache directory where cache items should be stored (used for default read/write implementation).",
"description": "Provide an invalidation identifier which is used to generate the hashes. You can use it for extra dependencies of loaders (used for default read/write implementation).",
"type": "string"
},
"cacheDirectory": {
"description": "Provide an invalidation identifier which is used to generate the hashes. You can use it for extra dependencies of loaders (used for default read/write implementation).",
"description": "Provide a cache directory where cache items should be stored (used for default read/write implementation).",
"type": "string"
},
"compare": {
Expand Down
4 changes: 2 additions & 2 deletions test/__snapshots__/validate-options.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
exports[`validate options error (pitch) 1`] = `
"Invalid options object. Cache Loader (Pitch) has been initialised using an options object that does not match the API schema.
- options.cacheIdentifier should be a string.
-> Provide a cache directory where cache items should be stored (used for default read/write implementation)."
-> Provide an invalidation identifier which is used to generate the hashes. You can use it for extra dependencies of loaders (used for default read/write implementation)."
`;

exports[`validate options error 1`] = `
"Invalid options object. Cache Loader has been initialised using an options object that does not match the API schema.
- options.cacheIdentifier should be a string.
-> Provide a cache directory where cache items should be stored (used for default read/write implementation)."
-> Provide an invalidation identifier which is used to generate the hashes. You can use it for extra dependencies of loaders (used for default read/write implementation)."
`;

exports[`validate options unknown (pitch) 1`] = `
Expand Down

0 comments on commit 4e0e3ae

Please sign in to comment.