forked from csscomb/csscomb.js
-
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
215 changed files
with
1,180 additions
and
1,741 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,6 @@ | ||
lib-cov | ||
node_modules | ||
test/test-coverage.html | ||
|
||
.idea | ||
*.iml | ||
|
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,6 +1,7 @@ | ||
{ | ||
"excludeFiles": [ | ||
"node_modules/**" | ||
"node_modules/**", | ||
"lib-cov/**" | ||
], | ||
"requireCurlyBraces": [ | ||
"else", | ||
|
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
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 @@ | ||
{ | ||
"name": "csscomb", | ||
"description": "CSS coding style formatter", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"homepage": "http://csscomb.com/", | ||
"author": "Mikhail Troshev <[email protected]>", | ||
"repository": "https://github.com/csscomb/csscomb.js", | ||
|
@@ -45,7 +45,7 @@ | |
}, | ||
"dependencies": { | ||
"commander": "2.0.0", | ||
"gonzales-pe": "2.0.1", | ||
"gonzales-pe": "2.0.x", | ||
"minimatch": "0.2.12", | ||
"vow": "0.3.11", | ||
"vow-fs": "0.2.3" | ||
|
@@ -61,6 +61,7 @@ | |
"csscomb": "./bin/csscomb" | ||
}, | ||
"scripts": { | ||
"test": "./node_modules/.bin/jshint-groups && ./node_modules/.bin/jscs . && ./node_modules/.bin/mocha -u bdd -R dot" | ||
"test": "./node_modules/.bin/jshint-groups && ./node_modules/.bin/jscs . && node test/mocha", | ||
"test-cov": "rm -rf lib-cov && jscoverage lib lib-cov && TEST_COV=true node test/mocha > ./test/test-coverage.html" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
var assert = require('assert'); | ||
|
||
describe('csscomb methods', function() { | ||
it('getConfig()', function() { | ||
var config = require('../../config/csscomb.json'); | ||
|
||
assert.equal(this.comb.getConfig(), config); | ||
}); | ||
|
||
it('getConfig(number)', function() { | ||
assert.throws(function() { | ||
this.comb.getConfig(16); | ||
}); | ||
}); | ||
|
||
it('getConfig(boolean)', function() { | ||
assert.throws(function() { | ||
this.comb.getConfig(true); | ||
}); | ||
}); | ||
|
||
it('getConfig(empty string)', function() { | ||
var config = require('../../config/csscomb.json'); | ||
|
||
assert.equal(this.comb.getConfig(''), config); | ||
}); | ||
|
||
it('getConfig(invalid string)', function() { | ||
assert.throws(function() { | ||
this.comb.getConfig('nani'); | ||
}); | ||
}); | ||
|
||
it('getConfig(csscomb)', function() { | ||
var config = require('../../config/csscomb.json'); | ||
|
||
assert.equal(this.comb.getConfig('csscomb'), config); | ||
}); | ||
|
||
it('getConfig(zen)', function() { | ||
var config = require('../../config/zen.json'); | ||
|
||
assert.equal(this.comb.getConfig('zen'), config); | ||
}); | ||
|
||
it('getConfig(yandex)', function() { | ||
var config = require('../../config/yandex.json'); | ||
|
||
assert.equal(this.comb.getConfig('yandex'), config); | ||
}); | ||
}); |
Oops, something went wrong.