diff --git a/.eslintrc.yaml b/.eslintrc.yaml index d2221cb0..06ab7247 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -12,3 +12,8 @@ rules: import/extensions: - error - ignorePackages +overrides: + - rules: + no-new: off + files: + - './test/**/*.spec.js' \ No newline at end of file diff --git a/test/unit/sentientOutpost.spec.js b/test/unit/sentientOutpost.spec.js index 5507922b..7c46d34d 100644 --- a/test/unit/sentientOutpost.spec.js +++ b/test/unit/sentientOutpost.spec.js @@ -16,10 +16,10 @@ describe('SentientOutpost', function () { }); it('should throw TypeError when called with no argument or an invalid argument', function () { (() => { - SentientOutpost(); + new SentientOutpost(); }).should.throw(TypeError); (() => { - SentientOutpost({}); + new SentientOutpost({}); }).should.throw(TypeError); }); });