From 6ecc842e53a8c25c93323c1f1a41bd4966346041 Mon Sep 17 00:00:00 2001 From: James Halliday Date: Tue, 5 Aug 2014 14:06:17 +1200 Subject: [PATCH] hats, has module --- lib/test.js | 5 +---- package.json | 9 +++++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/test.js b/lib/test.js index 171eea05..e3dda4a1 100644 --- a/lib/test.js +++ b/lib/test.js @@ -4,6 +4,7 @@ var defined = require('defined'); var path = require('path'); var inherits = require('inherits'); var EventEmitter = require('events').EventEmitter; +var has = require('has'); module.exports = Test; @@ -456,10 +457,6 @@ Test.prototype.doesNotThrow = function (fn, expected, msg, extra) { }); }; -function has (obj, prop) { - return Object.prototype.hasOwnProperty.call(obj, prop); -} - Test.skip = function (name_, _opts, _cb) { var args = getTestArgs.apply(null, arguments); args.opts.skip = true; diff --git a/package.json b/package.json index f6e128f8..2897eee4 100644 --- a/package.json +++ b/package.json @@ -11,11 +11,12 @@ "dependencies": { "deep-equal": "~0.2.0", "defined": "~0.0.0", - "glob": "~3.2.9", - "inherits": "~2.0.1", - "object-inspect": "~0.4.0", + "glob": "^3.2.9", + "inherits": "^2.0.1", + "object-inspect": "^1.0.0", "resumer": "~0.0.0", - "through": "~2.3.4" + "through": "^2.3.4", + "has": "~0.0.1" }, "devDependencies": { "tap" : "~0.4.8",