Skip to content

Commit

Permalink
chore: eslint turn off no-new for test files
Browse files Browse the repository at this point in the history
  • Loading branch information
SlayerOrnstein committed Oct 8, 2024
1 parent 5e09cc0 commit d96b329
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@ rules:
import/extensions:
- error
- ignorePackages
overrides:
- rules:
no-new: off
files:
- './test/**/*.spec.js'
4 changes: 2 additions & 2 deletions test/unit/sentientOutpost.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});
Expand Down

0 comments on commit d96b329

Please sign in to comment.