From 126792d69e0fb281020c032fdf89fef61aa38a29 Mon Sep 17 00:00:00 2001 From: zhang Date: Fri, 6 Sep 2019 10:59:03 +0800 Subject: [PATCH] update standard to 14.1.0 and fix errors --- package.json | 2 +- test.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 65c8a59..1993691 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "mocha": "^6.0.0", "nyc": "^14.0.0", "should": "^13.0.1", - "standard": "^13.0.1" + "standard": "^14.1.0" }, "dependencies": { "xtend": "^4.0.1" diff --git a/test.js b/test.js index fdf4dc9..5756d73 100644 --- a/test.js +++ b/test.js @@ -31,6 +31,6 @@ it('should be able to create functions based on created functions', function () }) it('should throw when call without callables', function () { - void function () { createFunction() }.should.throw(TypeError) - void function () { createFunction(1) }.should.throw(TypeError) + ;(function () { createFunction() }).should.throw(TypeError) + ;(function () { createFunction(1) }).should.throw(TypeError) })