Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jan 3, 2014
1 parent c1098d5 commit 786ce56
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 24 deletions.
41 changes: 18 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,37 @@
"name": "jshint-stylish",
"version": "0.1.4",
"description": "Stylish reporter for JSHint",
"keywords": [
"jshint",
"reporter",
"lint",
"validate",
"stylish",
"elegant"
],
"homepage": "https://github.com/sindresorhus/jshint-stylish",
"bugs": "https://github.com/sindresorhus/jshint-stylish/issues",
"license": "MIT",
"repository": "sindresorhus/jshint-stylish",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "http://sindresorhus.com"
},
"files": [
"index.js",
"stylish.js"
],
"repository": {
"type": "git",
"url": "git://github.com/sindresorhus/jshint-stylish.git"
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"test": "mocha"
},
"files": [
"index.js",
"stylish.js"
],
"keywords": [
"jshint",
"reporter",
"lint",
"validate",
"stylish",
"elegant"
],
"dependencies": {
"chalk": "~0.2.1",
"chalk": "~0.4.0",
"text-table": "~0.2.0"
},
"devDependencies": {
"mocha": "~1.13.0",
"jshint": "~2.1.11"
},
"engines": {
"node": ">=0.8.0"
"mocha": "*",
"jshint": "~2"
}
}
4 changes: 3 additions & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ var reporter = require('./stylish.js').reporter;
describe('jshint-stylish', function () {
it('should be used by JSHint', function () {
var ret = false;
var _log = process.stdout.write;
var _log = process.stdout.write.bind(process.stdout);

process.stdout.write = function (str) {
_log(str);

if (/line 8 col 1 'describe' is not defined/ig.test(chalk.stripColor(str || ''))) {
ret = true;
}
Expand Down

0 comments on commit 786ce56

Please sign in to comment.