Skip to content

Commit

Permalink
Added autoprefixer
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroPerezMartin committed Dec 29, 2017
1 parent 7b90c3a commit ee35373
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/autoprefixer.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
const tap = require('tap');
const ClientKitCss = require('../');
const utils = require('./utils');

tap.test('generates prefixes and cleans code in css', (t) => {
const css = new ClientKitCss('autoprefixer', {
files: {
'test/out/autoprefixer.css': 'test/fixtures/autoprefixer.css'
}
});
css.execute((err, results) => {
t.equal(err, null);
utils.checkOutput(t, 'autoprefixer.css');
t.end();
});
});
10 changes: 10 additions & 0 deletions test/expected/autoprefixer.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions test/fixtures/autoprefixer.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
body {
display: flex;
}

a {
-webkit-border-radius: 5px;
border-radius: 5px;
}

0 comments on commit ee35373

Please sign in to comment.