Skip to content

Commit

Permalink
Fix tests (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
SamVerschueren authored and sindresorhus committed Apr 27, 2017
1 parent a731af5 commit e910f82
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
language: node_js
node_js:
- '6'
- '4'
- 'node'
- '0.12'
- '0.10'
after_success: npm run coveralls
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@
"strip-ansi": "^3.0.1"
},
"devDependencies": {
"ava": "^0.16.0",
"ava": "^0.17.0",
"chalk": "^1.1.0",
"coveralls": "^2.11.4",
"has-ansi": "^2.0.0",
"nyc": "^6.2.1",
"strip-ansi": "^3.0.0",
"xo": "*"
"xo": "^0.16.0"
}
}
2 changes: 2 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import hasAnsi from 'has-ansi';
import stripAnsi from 'strip-ansi';
import fn from './';

chalk.enabled = true;

// when "hard" is false

const fixture = 'The quick brown ' + chalk.red('fox jumped over ') + 'the lazy ' + chalk.green('dog and then ran away with the unicorn.');
Expand Down

0 comments on commit e910f82

Please sign in to comment.