From 4bf7d970d7d5b2f61882e7858df70c2f641d5ce9 Mon Sep 17 00:00:00 2001 From: James Halliday Date: Wed, 20 Mar 2013 12:20:45 -0700 Subject: [PATCH] using tape so we can run these tests in browsers --- package.json | 5 +++-- test/buffer.js | 2 +- test/indexes.js | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 52bc0bc..8bac389 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,8 @@ "base64-js" : "0.0.2" }, "devDependencies" : { - "tap" : "0.2.x" + "tape" : "~0.3.0", + "tap" : "~0.4.0" }, "repository" : { "type" : "git", @@ -29,7 +30,7 @@ "email" : "toots@rastageeks.org" }, "scripts" : { - "test" : "node node_modules/tap/bin/tap.js test/*.js" + "test" : "tap test/*.js" }, "license" : "MIT/X11", "engine" : { "node" : ">=0.6" } diff --git a/test/buffer.js b/test/buffer.js index 77e4349..53d8708 100644 --- a/test/buffer.js +++ b/test/buffer.js @@ -1,5 +1,5 @@ var buffer = require('../index.js'); -var test = require('tap').test; +var test = require('tape'); test('utf8 buffer to base64', function (t) { t.plan(1); diff --git a/test/indexes.js b/test/indexes.js index d5a2f20..9425013 100644 --- a/test/indexes.js +++ b/test/indexes.js @@ -1,5 +1,5 @@ var B = require('../').Buffer; -var test = require('tap').test; +var test = require('tape'); test('indexes from a string', function(t) { t.plan(3); -- 2.34.1