Skip to content

Commit

Permalink
chore(deps-dev): upgrade to latest stable
Browse files Browse the repository at this point in the history
and regenerate lock file
  • Loading branch information
AviVahl committed Jul 29, 2024
1 parent 53a4b8d commit 2ef83e8
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 50 deletions.
93 changes: 47 additions & 46 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@types/mocha": "^10.0.7",
"@types/sinon": "^17.0.3",
"@types/sinon-chai": "^3.2.12",
"@typescript-eslint/eslint-plugin": "^7.17.0",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"esbuild": "^0.23.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
Expand Down
6 changes: 3 additions & 3 deletions src/is-present.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ function isPresent(element: unknown): boolean {
);
}

export default function (chai: Chai.ChaiStatic, { flag }: Chai.ChaiUtils): void {
export default function (chai: Chai.ChaiStatic, utils: Chai.ChaiUtils): void {
chai.Assertion.addMethod('present', function () {
const element = flag(this, 'object') as Element;
const element = utils.flag(this, 'object') as Element;
this.assert(isPresent(element), 'Element expected to be present.', 'Element expected to be absent.', true);
});

chai.Assertion.addMethod('absent', function () {
const element = flag(this, 'object') as Element;
const element = utils.flag(this, 'object') as Element;
this.assert(!isPresent(element), 'Element expected to be absent.', 'Element expected to be present.', true);
});
}

0 comments on commit 2ef83e8

Please sign in to comment.