Permalink
Browse files

using tape

  • Loading branch information...
1 parent 0baa25d commit 2f16ce801cbecb36ea3930cf3a623082359ca499 @substack committed Dec 17, 2012
Showing with 9 additions and 17 deletions.
  1. +3 −3 package.json
  2. +1 −3 test/circular.js
  3. +1 −3 test/fn.js
  4. +2 −4 test/proto.js
  5. +1 −3 test/scrub.js
  6. +1 −1 test/wrap.js
View
@@ -1,6 +1,6 @@
{
"name": "dnode-protocol",
- "description": "Implements the dnode protocol abstractly",
+ "description": "implements the dnode protocol abstractly",
"version": "0.2.2",
"repository": "https://github.com/substack/dnode-protocol.git",
"author": {
@@ -14,11 +14,11 @@
"jsonify" : "~0.0.0"
},
"devDependencies" : {
- "tap" : "~0.2.5"
+ "tap" : "~0.3.3",
+ "tape" : "~0.1.1"
},
"scripts": {
"test": "tap test/*.js"
},
- "engines": { "node" : ">=0.4.0" },
"license" : "MIT"
}
View
@@ -1,6 +1,4 @@
-var test;
-try { test = require('tap').test; }
-catch (e) { test = require('testling') }
+var test = require('tape');
var Scrubber = require('../lib/scrub');
test('circular', function (t) {
View
@@ -1,6 +1,4 @@
-var test;
-try { test = require('tap').test; }
-catch (e) { test = require('testling') }
+var test = require('tape');
var proto = require('../');
var traverse = require('traverse');
View
@@ -1,9 +1,9 @@
-var test = require('tap').test;
+var test = require('tape');
var proto = require('../');
var traverse = require('traverse');
test('proto hashes', function (t) {
- t.plan(4);
+ t.plan(5);
var s = proto({
x : function (f, g) {
@@ -49,11 +49,9 @@ test('proto hashes', function (t) {
c.request('x', [
function (x, y , z) {
t.deepEqual([ x, y, z ], [ 7, 8, 9 ]);
- if (--pending === 0) t.end();
},
function (qr) {
t.deepEqual(qr, [ 'q', 'r' ]);
- if (--pending === 0) t.end();
}
]);
View
@@ -1,6 +1,4 @@
-var test;
-try { test = require('tap').test; }
-catch (e) { test = require('testling') }
+var test = require('tape');
var scrubber = require('../lib/scrub');
test('no functions', function (t) {
View
@@ -1,4 +1,4 @@
-var test = require('tap').test;
+var test = require('tape');
var proto = require('../');
var traverse = require('traverse');

0 comments on commit 2f16ce8

Please sign in to comment.