Skip to content

Commit

Permalink
lint tests with jscs
Browse files Browse the repository at this point in the history
  • Loading branch information
lahmatiy committed Feb 13, 2017
1 parent f301dcb commit 22ea50f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
},
"scripts": {
"test": "mocha --reporter dot",
"codestyle": "jscs lib && eslint lib test",
"codestyle": "jscs lib test && eslint lib test",
"codestyle-and-test": "npm run codestyle && npm test",
"hydrogen": "node --trace-hydrogen --trace-phase=Z --trace-deopt --code-comments --hydrogen-track-positions --redirect-code-traces --redirect-code-traces-to=code.asm --trace_hydrogen_file=code.cfg --print-opt-code bin/csso --stat -o /dev/null",
"coverage": "istanbul cover _mocha -- -R dot",
Expand Down
8 changes: 4 additions & 4 deletions test/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ describe('plugins', function() {
it('calls beforeCompress when it is a function', function() {
var called = true;
var ast = csso.minify(css, {
beforeCompress: function (ast, options) {
beforeCompress: function(ast, options) {
assert(ast);
assert(options);
called = true;
Expand All @@ -19,7 +19,7 @@ describe('plugins', function() {

it('calls beforeCompress when it is an array', function() {
var called = [false, false];
var pluginFactory = function (index) {
var pluginFactory = function(index) {
return function callback(ast, options) {
assert(ast);
assert(options);
Expand All @@ -38,7 +38,7 @@ describe('plugins', function() {
it('calls afterCompress when it is a function', function() {
var called = true;
var ast = csso.minify(css, {
afterCompress: function (compressResult, options) {
afterCompress: function(compressResult, options) {
assert(compressResult);
assert(compressResult.ast);
assert(options);
Expand All @@ -52,7 +52,7 @@ describe('plugins', function() {

it('calls afterCompress when it is an array', function() {
var called = [false, false];
var pluginFactory = function (index) {
var pluginFactory = function(index) {
return function callback(compressResult, options) {
assert(compressResult);
assert(compressResult.ast);
Expand Down

0 comments on commit 22ea50f

Please sign in to comment.