From: James Halliday Date: Wed, 20 Mar 2013 19:20:45 +0000 (-0700) Subject: using tape so we can run these tests in browsers X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=4bf7d970d7d5b2f61882e7858df70c2f641d5ce9;p=buffer.git using tape so we can run these tests in browsers --- 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);