hamjest
hamjest copied to clipboard
A JavaScript implementation of Hamcrest
While using asserthat method we get following error "AssertionError: Status Code Verification Expected: "201" but: was "400" + expected - actual -400 +201 at ResponseValidator.verifyStatusCode (C:\xxxxx\xx.js:69:16) at Initialize. (C:\xxxxx\xx.js:113:24)" Can...
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR See full...
Bumps [karma](https://github.com/karma-runner/karma) from 5.2.3 to 6.3.16. Release notes Sourced from karma's releases. v6.3.16 6.3.16 (2022-02-10) Bug Fixes security: mitigate the "Open Redirect Vulnerability" (ff7edbb) v6.3.15 6.3.15 (2022-02-05) Bug Fixes helper:...
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.4 to 1.14.8. Commits 3d81dc3 Release version 1.14.8 of the npm package. 62e546a Drop confidential headers across schemes. 2ede36d Release version 1.14.7 of the npm package. 8b347cb...
Bumps [cached-path-relative](https://github.com/ashaffer/cached-path-relative) from 1.0.2 to 1.1.0. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...
Bumps [log4js](https://github.com/log4js-node/log4js-node) from 6.3.0 to 6.4.0. Changelog Sourced from log4js's changelog. 6.4.0 security: default file permission to be 0o600 instead of 0o644 - thanks ranjit-git and @peteriman chore(docs): updated fileSync.md...
Make named imports in type=module packages work. ## Summary This MR makes `import {whatever} from 'hamjest'` work, by exporting each function explicitly so its easy to statically analyze the file,...
the "hasProperty" matcher lets you convert from `__.assertThat('hello'.length, __.greaterThan(3))` to `assertThat('hello', hasProperty('length', __.greaterThan(3))` can we extend this idea to arbitrary functions? so instead of writing `__.assertThat(element.querySelector('option').value.length, __.greaterThan(3))` one could write...
introduce syntactic sugar to make the hamjest code look more like jest code. `__.expect(5).toBe(__.greaterThan(4))` would be equivalent to `__.assertThat(5, __.greaterThan(4))` if this would help people familiar with the "jest syntax"...
When using `hasProperties` we are more interested in the given properties than in anything else. So the diff becomes more useful if only the differing aspects are shown. `describeMismatch` uses...