-
Notifications
You must be signed in to change notification settings - Fork 957
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* fix(theme): mapping application order * test(theme): add uncovered cases tests & refactor to match snapshots * refactor(theme): apply naming convention
- Loading branch information
1 parent
48c6cfe
commit ca37382
Showing
5 changed files
with
619 additions
and
516 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
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
161 changes: 161 additions & 0 deletions
161
src/framework/theme/tests/__snapshots__/style.spec.ts.snap
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,161 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`@style: service methods checks * styling * custom appearance * no variant and no state 1`] = ` | ||
Object { | ||
"borderColor": "#9E9E9E", | ||
"borderWidth": 4, | ||
"innerSize": 24, | ||
"selectColor": "transparent", | ||
"size": 36, | ||
} | ||
`; | ||
|
||
exports[`@style: service methods checks * styling * custom appearance * with state * explicit (should apply own) 1`] = ` | ||
Object { | ||
"borderColor": "#E0E0E0", | ||
"borderWidth": 4, | ||
"innerSize": 24, | ||
"selectColor": "transparent", | ||
"size": 36, | ||
} | ||
`; | ||
|
||
exports[`@style: service methods checks * styling * custom appearance * with state * implicit (should apply from default appearance) 1`] = ` | ||
Object { | ||
"borderColor": "#2196F3", | ||
"borderWidth": 4, | ||
"innerSize": 24, | ||
"selectColor": "#2196F3", | ||
"size": 36, | ||
} | ||
`; | ||
|
||
exports[`@style: service methods checks * styling * custom appearance * with variant * explicit (should apply own) 1`] = ` | ||
Object { | ||
"borderColor": "#009688", | ||
"borderWidth": 4, | ||
"innerSize": 24, | ||
"selectColor": "transparent", | ||
"size": 36, | ||
} | ||
`; | ||
|
||
exports[`@style: service methods checks * styling * custom appearance * with variant * implicit (should apply from default appearance) 1`] = ` | ||
Object { | ||
"borderColor": "#9E9E9E", | ||
"borderWidth": 4, | ||
"innerSize": 28, | ||
"selectColor": "transparent", | ||
"size": 42, | ||
} | ||
`; | ||
|
||
exports[`@style: service methods checks * styling * default appearance * no variant and no state 1`] = ` | ||
Object { | ||
"borderColor": "#9E9E9E", | ||
"borderWidth": 2, | ||
"innerSize": 24, | ||
"selectColor": "transparent", | ||
"size": 36, | ||
} | ||
`; | ||
|
||
exports[`@style: service methods checks * styling * default appearance * with state * multiple 1`] = ` | ||
Object { | ||
"borderColor": "#1976D2", | ||
"borderWidth": 2, | ||
"innerSize": 24, | ||
"selectColor": "#2196F3", | ||
"size": 36, | ||
} | ||
`; | ||
|
||
exports[`@style: service methods checks * styling * default appearance * with state * single 1`] = ` | ||
Object { | ||
"borderColor": "#616161", | ||
"borderWidth": 2, | ||
"innerSize": 24, | ||
"selectColor": "transparent", | ||
"size": 36, | ||
} | ||
`; | ||
|
||
exports[`@style: service methods checks * styling * default appearance * with variant * multiple * no state 1`] = ` | ||
Object { | ||
"borderColor": "#9E9E9E", | ||
"borderWidth": 2, | ||
"innerSize": 28, | ||
"selectColor": "transparent", | ||
"size": 42, | ||
} | ||
`; | ||
|
||
exports[`@style: service methods checks * styling * default appearance * with variant * multiple * with state * multiple 1`] = ` | ||
Object { | ||
"borderColor": "#00796B", | ||
"borderWidth": 2, | ||
"innerSize": 28, | ||
"selectColor": "#009688", | ||
"size": 42, | ||
} | ||
`; | ||
|
||
exports[`@style: service methods checks * styling * default appearance * with variant * multiple * with state * single 1`] = ` | ||
Object { | ||
"borderColor": "#616161", | ||
"borderWidth": 2, | ||
"innerSize": 28, | ||
"selectColor": "transparent", | ||
"size": 42, | ||
} | ||
`; | ||
|
||
exports[`@style: service methods checks * styling * default appearance * with variant * single * no state 1`] = ` | ||
Object { | ||
"borderColor": "#9E9E9E", | ||
"borderWidth": 2, | ||
"innerSize": 24, | ||
"selectColor": "transparent", | ||
"size": 36, | ||
} | ||
`; | ||
|
||
exports[`@style: service methods checks * styling * default appearance * with variant * single * with state * multiple 1`] = ` | ||
Object { | ||
"borderColor": "#00796B", | ||
"borderWidth": 2, | ||
"innerSize": 24, | ||
"selectColor": "#009688", | ||
"size": 36, | ||
} | ||
`; | ||
|
||
exports[`@style: service methods checks * styling * default appearance * with variant * single * with state * single explicit (should apply own) 1`] = ` | ||
Object { | ||
"borderColor": "#009688", | ||
"borderWidth": 2, | ||
"innerSize": 24, | ||
"selectColor": "#009688", | ||
"size": 36, | ||
} | ||
`; | ||
|
||
exports[`@style: service methods checks * styling * default appearance * with variant * single * with state * single implicit (should apply from appearance) 1`] = ` | ||
Object { | ||
"borderColor": "#616161", | ||
"borderWidth": 2, | ||
"innerSize": 24, | ||
"selectColor": "transparent", | ||
"size": 36, | ||
} | ||
`; | ||
|
||
exports[`@style: service methods checks * styling * undefined appearance * no variant and no state (should apply default appearance) 1`] = ` | ||
Object { | ||
"borderColor": "#9E9E9E", | ||
"borderWidth": 2, | ||
"innerSize": 24, | ||
"selectColor": "transparent", | ||
"size": 36, | ||
} | ||
`; |
Oops, something went wrong.