Skip to content

Commit

Permalink
Less abstract assert example
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Dec 21, 2023
1 parent bf089b4 commit 028451f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import { assertDeepStrictEqual } from 'assert-deep-strict-equal';

## B) Usage
```javascript
const actual = { x: 3, y: 7, z: 21 };
const expected = { x: 3, y: 7, z: 21 };
const actual = { ingredient: 'sugar', units: 'grams', amount: 100 };
const expected = { ingredient: 'sugar', units: 'grams', amount: 100 };
assertDeepStrictEqual(actual, expected, done);
```
The third parameter for the `done` callback is optional:
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,19 +79,19 @@
"examples": "npm test && mocha examples.spec.js"
},
"devDependencies": {
"@types/node": "~20.8",
"@typescript-eslint/eslint-plugin": "~6.9",
"@typescript-eslint/parser": "~6.9",
"@types/node": "~20.10",
"@typescript-eslint/eslint-plugin": "~6.15",
"@typescript-eslint/parser": "~6.15",
"add-dist-header": "~1.3",
"copy-file-util": "~1.1",
"copy-folder-util": "~1.1",
"eslint": "~8.53",
"eslint": "~8.56",
"fetch-json": "~3.2",
"jshint": "~2.13",
"merge-stream": "~2.0",
"mocha": "~10.2",
"rimraf": "~5.0",
"run-scripts-util": "~1.2",
"typescript": "~5.2"
"typescript": "~5.3"
}
}

0 comments on commit 028451f

Please sign in to comment.