Jeff Williams
235d402e6b
feat(jsdoc-test-matchers): add matchers
2023-09-17 16:53:04 -07:00
Jeff Williams
0c8200c553
chore(test-matchers): remove toContainHtml matcher
...
It used Prettier to normalize the HTML, but Prettier is now async; that doesn't really work for a Jasmine matcher.
2023-09-09 16:03:24 -07:00
Jeff Williams
4dfa5d7a0d
feat(jsdoc-test-matchers): add toBeArrayOfObjects, toBeNumber, toHaveMethod matchers
2023-03-08 15:52:09 -08:00
Jeff Williams
c04508f295
refactor: migrate to ES modules
2023-02-28 20:12:24 -08:00
Jeff Williams
8c6aad8440
chore: add license headers, and a CI check for their presence
2023-01-08 16:11:38 -08:00
Jeff Williams
7024ee5195
fix(jsdoc-test-matchers): normalize whitespace in toContainHtml matcher
...
Previously, differences in indentation and empty lines could incorrectly prevent a match.
2023-01-07 12:05:35 -08:00
Jeff Williams
d09b14ddc3
fix(jsdoc-test-matchers): replace HTML formatter
...
If you have two HTML fragments, f1 and f2, and both fragments contain `<h2>text</h2>`, diffable-html arbitrarily adds and removes whitespace within the `<h2>` based on the surrounding context. That makes it useless for our purposes.
Prettier's behavior appears to be much more consistent.
2023-01-07 08:29:16 -08:00
Jeff Williams
4451354eee
feat(jsdoc-test-matchers): improve HTML matcher
2023-01-07 07:46:11 -08:00
Jeff Williams
5a61151ea2
feat(jsdoc-test-matchers): add toMatchHtml matcher
2023-01-06 19:39:13 -08:00
Jeff Williams
1e02120b21
fix: load matchers from jasmine-expect
...
I accidentally removed this in 41ac86129b9b45216708c307645a0fc47eecf8bf, resulting in much breakage.
2022-12-11 18:59:09 -08:00
Jeff Williams
f3f73b22e8
feat(jsdoc-test-matchers): add toHaveOwnProperty matcher
2022-11-03 14:33:43 -07:00
Jeff Williams
1e7173941f
feat(jsdoc-test-matchers): add toMatchArrayOfObjects and toMatchObject matchers
2022-10-23 20:03:42 -07:00
Jeff Williams
41ac86129b
chore(deps): update Jasmine; add missing deps
...
We can't update Jasmine past 3.99.0 until we've done away with our `require()`-hacking shenanigans.
2022-09-02 12:34:26 -07:00
Jeff Williams
1305499207
chore: use Prettier to format source files
2021-09-19 13:20:31 -07:00
Jeff Williams
a912012bba
feat(jsdoc-test-matchers): add toBeInstanceOf matcher
2019-10-09 13:05:40 -04:00
Jeff Williams
a167def049
refactor: add @jsdoc/test-matchers package
2019-10-06 09:31:40 -07:00