-
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support configuration via title (#81)
- Loading branch information
1 parent
3a4f74a
commit afddc10
Showing
8 changed files
with
852 additions
and
550 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +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. | ||
- options has an unknown property 'foo'. These properties are valid: | ||
object { name? }" | ||
`; | ||
exports[`api should prefer configuration over "title" #1 1`] = ` | ||
"Invalid configuration object. NAME has been initialised using a configuration object that does not match the API schema. | ||
- configuration 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. | ||
- 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. | ||
- 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. | ||
- configuration has an unknown property 'foo'. These properties are valid: | ||
object { name? }" | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"title": "CSSLoaderoptions", | ||
"additionalProperties": false, | ||
"properties": { | ||
"name": { | ||
"type": "boolean" | ||
} | ||
}, | ||
"type": "object" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"title": "CSS Loader options", | ||
"additionalProperties": false, | ||
"properties": { | ||
"name": { | ||
"type": "boolean" | ||
} | ||
}, | ||
"type": "object" | ||
} |