Skip to content

Commit

Permalink
fixup: util spec
Browse files Browse the repository at this point in the history
  • Loading branch information
nopeless committed Sep 16, 2021
1 parent 94bfbd8 commit ef53ddb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/util.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ describe(`Util functions`, function () {
});
describe(`getCallerFile()`, function () {
it(`Should error when current file is not set`, function () {
expect(getCallerFileSpec.current()).to.throw(/file/gi);
expect(() => getCallerFileSpec.current()).to.throw(/file/gi);
});
it(`Should return the correct file`, function () {
expect(getCallerFileSpec.correct() === __dirname).to.be.true;
Expand Down

0 comments on commit ef53ddb

Please sign in to comment.