From eac5ba4c56b329c9c01e8431fc9674511b77bf65 Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Thu, 13 Oct 2016 12:47:43 +1100 Subject: [PATCH] Fix spec linting issues --- spec/api-ipc-spec.js | 2 +- spec/fixtures/module/no-prototype.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/api-ipc-spec.js b/spec/api-ipc-spec.js index eedab2b24..3cd10e971 100644 --- a/spec/api-ipc-spec.js +++ b/spec/api-ipc-spec.js @@ -45,7 +45,7 @@ describe('ipc module', function () { assert.equal(a.bar, 1234) assert.equal(a.anonymous.constructor.name, '') assert.equal(a.getConstructorName(Object.create(null)), '') - assert.equal(a.getConstructorName(new (class {})), '') + assert.equal(a.getConstructorName(new (class {})()), '') }) it('should search module from the user app', function () { diff --git a/spec/fixtures/module/no-prototype.js b/spec/fixtures/module/no-prototype.js index 46cc4fe83..000eb183f 100644 --- a/spec/fixtures/module/no-prototype.js +++ b/spec/fixtures/module/no-prototype.js @@ -4,7 +4,7 @@ foo.baz = false module.exports = { foo: foo, bar: 1234, - anonymous: new (class {}), + anonymous: new (class {})(), getConstructorName: function (value) { return value.constructor.name }