-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6f57727
commit 7cea03b
Showing
4 changed files
with
58 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
export default function DocHeader() { | ||
return /*css*/` | ||
/** | ||
* For more information please see the documentation at : https://github.com/enhance-dev/enhance-styles#readme | ||
return /*css*/`/** | ||
* ENHANCE STYLES | ||
* For more information, please see the documentation at : https://github.com/enhance-dev/enhance-styles#readme | ||
*/ | ||
` | ||
} |
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,23 @@ | ||
import test from 'tape' | ||
|
||
import themeColor from '../theme-color.mjs' | ||
|
||
const noThemeColor = { | ||
theme: false, | ||
color: false, | ||
} | ||
|
||
const noTheme = { | ||
theme: false | ||
} | ||
|
||
const noColor = { | ||
color: false | ||
} | ||
|
||
test('themeColor', t => { | ||
t.equal(themeColor({ config: noThemeColor }), '', 'should emit an empty string when `config.theme` and `config.color` are both `false`') | ||
t.notOk(themeColor({ config: noTheme }).includes('/*** Theme Colors ***/'), 'should not includes theme colors when `config.theme` is `false`') | ||
t.notOk(themeColor({ config: noColor }).includes('/*** Spot Colors ***/'), 'should not includes theme colors when `config.color` is `false`') | ||
t.end() | ||
}) |
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