chai-datetime
chai-datetime copied to clipboard
Matchers for chai to help with common date equality assertions against JavaScript Date objects.
Removes [yaml](https://github.com/eemeli/yaml). It's no longer used after updating ancestor dependency [husky](https://github.com/typicode/husky). These dependencies need to be updated together. Removes `yaml` Updates `husky` from 4.3.8 to 8.0.3 Release notes Sourced from...
Is there any way to get deep comparisons (in my case, `expect(object).to.deep.include(baseObject)`) to use chai-datetime comparisons so that dates in deep locations actually compare properly?
Something like `expect("foobar").to.equalDate(new Date());` causes the code to throw > TypeError: date.toDateString is not a function However, it would be preferable if the lib throws an assertion error, which makes...
improved version of PR #52 1. in `closeToTime` second argument assertions moved to the `chai.datetime.closeToTime` (more logical, and also allows monkey-patching the lib with `momentjs` objects) 2. fixed `formatTime` usage...
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3. Commits 74b2db2 3.0.3 88f1429 update eslint. lint, fix unit tests. 415d660 Snyk js braces 6838727 (#40) 190510f fix tests, skip 1 test in test/braces.expand...
Bumps [get-func-name](https://github.com/chaijs/get-func-name) from 2.0.0 to 2.0.2. Release notes Sourced from get-func-name's releases. v2.0.2 What's Changed Revert previous changes that shipped this as an ES module. Full Changelog: https://github.com/chaijs/get-func-name/commits/v2.0.2 v2.0.1 What's...
Chai v5 was released in December 2023. It would be great if chai-datetime could be compatible. Currently if you upgrade chai to v5 you get ``` TypeError: Cannot read properties...