From 879a6207bd4798a7893c0fe96c76f2a43c6c7a5a Mon Sep 17 00:00:00 2001 From: NinJa <386805508@qq.com> Date: Mon, 29 Apr 2019 15:46:48 +0800 Subject: [PATCH 1/2] require `should` library require `should` library --- test/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/index.js b/test/index.js index fdaf83a..e2698f8 100644 --- a/test/index.js +++ b/test/index.js @@ -1,6 +1,7 @@ var assert = require('assert'); var delegate = require('..'); +var should = require("should"); describe('.method(name)', function(){ it('should delegate methods', function(){ From 3e1a3312910820fc33c2904bfebceb9cff0f4388 Mon Sep 17 00:00:00 2001 From: NinJa <386805508@qq.com> Date: Mon, 29 Apr 2019 15:48:20 +0800 Subject: [PATCH 2/2] add test commonad add test commonad --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 1724038..cfec762 100644 --- a/package.json +++ b/package.json @@ -9,5 +9,8 @@ "mocha": "*", "should": "*" }, - "license": "MIT" + "license": "MIT", + "scripts": { + "test": "mocha" + } }