forked from tailwindlabs/tailwindcss
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
16 changed files
with
479 additions
and
430 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/lib | ||
/docs | ||
/__tests__/fixtures/cli-utils.js | ||
defaultConfig.stub.js | ||
/stubs/* |
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 |
---|---|---|
@@ -1,5 +1,11 @@ | ||
import config from '../defaultConfig.js' | ||
import configStub from '../stubs/defaultConfig.stub.js' | ||
|
||
test('the default config matches the stub', () => { | ||
expect(config()).toEqual(require('../defaultConfig.stub.js')) | ||
expect(config).toEqual(configStub) | ||
}) | ||
|
||
test('modifying the default config does not affect the stub', () => { | ||
config.theme = {} | ||
expect(config).not.toEqual(configStub) | ||
}) |
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,11 @@ | ||
import theme from '../defaultTheme.js' | ||
import configStub from '../stubs/defaultConfig.stub.js' | ||
|
||
test('the default theme matches the stub', () => { | ||
expect(theme).toEqual(configStub.theme) | ||
}) | ||
|
||
test('modifying the default theme does not affect the stub', () => { | ||
theme.colors = {} | ||
expect(theme).not.toEqual(configStub.theme) | ||
}) |
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
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,3 +1,4 @@ | ||
module.exports = function() { | ||
return require('lodash').cloneDeep(require('./defaultConfig.stub.js')) | ||
} | ||
const cloneDeep = require('lodash/cloneDeep') | ||
const defaultConfig = require('./stubs/defaultConfig.stub.js') | ||
|
||
module.exports = cloneDeep(defaultConfig) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.