Skip to content
Permalink
Browse files

Move testing to `ava` (#182)

  • Loading branch information...
kevva authored and sindresorhus committed Jul 23, 2017
1 parent e8d28f3 commit 4c4eb1fd0aa9efea2b469f130ed01d6891670ac4
Showing with 371 additions and 356 deletions.
  1. +2 βˆ’2 package.json
  2. +0 βˆ’353 test.js
  3. +1 βˆ’1 fixture.js β†’ test/_fixture.js
  4. +13 βˆ’0 test/_supports-color.js
  5. +96 βˆ’0 test/chalk.js
  6. +22 βˆ’0 test/constructor.js
  7. +35 βˆ’0 test/enabled.js
  8. +44 βˆ’0 test/level.js
  9. +95 βˆ’0 test/template-literal.js
  10. +63 βˆ’0 test/windows.js
@@ -8,7 +8,7 @@
"node": ">=4"
},
"scripts": {
"test": "xo && nyc mocha",
"test": "xo && nyc ava",
"bench": "matcha benchmark.js",
"coveralls": "nyc report --reporter=text-lcov | coveralls"
},
@@ -45,11 +45,11 @@
"supports-color": "^4.0.0"
},
"devDependencies": {
"ava": "*",
"coveralls": "^2.11.2",
"execa": "^0.7.0",
"import-fresh": "^2.0.0",
"matcha": "^0.7.0",
"mocha": "*",
"nyc": "^11.0.2",
"resolve-from": "^3.0.0",
"xo": "*"
353 test.js

This file was deleted.

@@ -1,4 +1,4 @@
'use strict';
const chalk = require('.');
const chalk = require('..');

console.log(chalk.hex('#ff6159')('test'));
@@ -0,0 +1,13 @@
'use strict';
const resolveFrom = require('resolve-from');

module.exports = dir => {
require.cache[resolveFrom(dir, 'supports-color')] = {
exports: {
level: 3,
hasBasic: true,
has256: true,
has16m: true
}
};
};

0 comments on commit 4c4eb1f

Please sign in to comment.
You can’t perform that action at this time.