Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

using tap

  • Loading branch information...
commit 2b29ce8938ab16b002e5b28b2d5a47663d3eb84c 1 parent ea806b8
James Halliday authored
Showing with 8 additions and 7 deletions.
  1. +2 −2 package.json
  2. +6 −5 test/cover.js
4 package.json
View
@@ -12,10 +12,10 @@
"burrito" : ">=0.2.5 <0.3"
},
"devDependencies" : {
- "expresso" : "0.7.x"
+ "tap" : "~0.2.4"
},
"scripts" : {
- "test" : "expresso"
+ "test" : "tap test/*.js"
},
"repository" : {
"type" : "git",
11 test/cover.js
View
@@ -1,4 +1,4 @@
-var assert = require('assert');
+var test = require('tap').test;
var bunker = require('../');
var fs = require('fs');
@@ -7,7 +7,9 @@ var src = fs.readdirSync(__dirname + '/src').reduce(function (acc, file) {
return acc;
}, {});
-exports.cover = function () {
+test('cover', function (t) {
+ t.plan(1);
+
var b = bunker(src['cover.js']);
var counts = {};
@@ -19,7 +21,7 @@ exports.cover = function () {
setInterval : setInterval,
clearInterval : function () {
process.nextTick(function () {
- assert.deepEqual(counts, {
+ t.same(counts, {
binary : 11,
'unary-postfix' : 11,
'var' : 2,
@@ -30,6 +32,5 @@ exports.cover = function () {
return clearInterval.apply(this, arguments);
},
- console : console
});
-};
+});
Please sign in to comment.
Something went wrong with that request. Please try again.