Skip to content

Commit

Permalink
Remove example class from dist build
Browse files Browse the repository at this point in the history
Still want to be including this in our tests, so sanity test now runs
against a separate fixture.
  • Loading branch information
adamwathan committed Nov 2, 2017
1 parent 684f23d commit e46cc65
Show file tree
Hide file tree
Showing 7 changed files with 454 additions and 1,151 deletions.
10 changes: 10 additions & 0 deletions __tests__/fixtures/tailwind-input.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@tailwind preflight;

@tailwind utilities;

@responsive {
.example {
@apply .font-bold;
color: config('colors.red');
}
}
File renamed without changes.
4 changes: 2 additions & 2 deletions __tests__/sanity.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import tailwind from '../src/index'
* Tests
*/
it('generates the right CSS', () => {
const input = fs.readFileSync(path.resolve(`${__dirname}/../css/tailwind.css`), 'utf8')
const input = fs.readFileSync(path.resolve(`${__dirname}/fixtures/tailwind-input.css`), 'utf8')

return postcss([tailwind()])
.process(input)
.then(result => {
const expected = fs.readFileSync(path.resolve(`${__dirname}/fixtures/tailwind.css`), 'utf8')
const expected = fs.readFileSync(path.resolve(`${__dirname}/fixtures/tailwind-output.css`), 'utf8')

expect(result.css).toBe(expected)
})
Expand Down
7 changes: 0 additions & 7 deletions css/tailwind.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
@tailwind preflight;

@tailwind utilities;

@responsive {
.example {
@apply .font-bold;
color: config('colors.red');
}
}
Loading

0 comments on commit e46cc65

Please sign in to comment.