A collection of assertions for Assert.
| Reference | Description |
|---|---|
npm://@assertions/is-strictly-equal | actual is the same value and type as expected |
npm://@assertions/is-equal | actual has the same value as expected |
npm://@assertions/is-true | actual is a string equivalent to YAML Boolean true |
npm://@assertions/starts-with | actual starts with expected |
npm://@assertions/directory-exists | path expected exists and is a directory |
npm://@assertions/equivalent-html | actual HTML is equivalent to expected HTML |
This monorepo organises assertions into separate npm packages by directory, each
managed as an npm workspace. Run an npm command against one
or more package using the -w|--workspace parameter or --workspaces for all.
dev:~$ npm run test -w @assertions/is-equaldev:~$ npm run test -w @assertions/is-equal -w @assertions/directory-existsdev:~$ npm run test --workspace @assertions/is-equaldev:~$ npm run test --workspaces