@@ -26,20 +26,61 @@ export type SnapshotOptions = {
2626} ;
2727
2828export interface Assertions {
29+ /** Assert that `actual` is [deeply equal](https://github.com/concordancejs/concordance#comparison-details) to `expected`. */
2930 deepEqual : DeepEqualAssertion ;
31+
32+ /** Fail the test. */
3033 fail : FailAssertion ;
34+
35+ /** Assert that `actual` is strictly false. */
3136 false : FalseAssertion ;
37+
38+ /** Assert that `actual` is [falsy](https://developer.mozilla.org/en-US/docs/Glossary/Falsy). */
3239 falsy : FalsyAssertion ;
40+
41+ /**
42+ * Assert that `actual` is [the same
43+ * value](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is) as `expected`.
44+ */
3345 is : IsAssertion ;
46+
47+ /**
48+ * Assert that `actual` is not [the same
49+ * value](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is) as `expected`.
50+ */
3451 not : NotAssertion ;
52+
53+ /** Assert that `actual` is not [deeply equal](https://github.com/concordancejs/concordance#comparison-details) to `expected`. */
3554 notDeepEqual : NotDeepEqualAssertion ;
55+
56+ /** Assert that `string` does not match the regular expression. */
3657 notRegex : NotRegexAssertion ;
58+
59+ /** Assert that the function does not throw. */
3760 notThrows : NotThrowsAssertion ;
61+
62+ /** Count a passing assertion. */
3863 pass : PassAssertion ;
64+
65+ /** Assert that `string` matches the regular expression. */
3966 regex : RegexAssertion ;
67+
68+ /**
69+ * Assert that `expected` is [deeply equal](https://github.com/concordancejs/concordance#comparison-details) to a
70+ * previously recorded [snapshot](https://github.com/concordancejs/concordance#serialization-details), or if
71+ * necessary record a new snapshot.
72+ */
4073 snapshot : SnapshotAssertion ;
74+
75+ /**
76+ * Assert that the function throws [an error](https://www.npmjs.com/package/is-error). If so, returns the error value.
77+ */
4178 throws : ThrowsAssertion ;
79+
80+ /** Assert that `actual` is strictly true. */
4281 true : TrueAssertion ;
82+
83+ /** Assert that `actual` is [truthy](https://developer.mozilla.org/en-US/docs/Glossary/Truthy). */
4384 truthy : TruthyAssertion ;
4485}
4586
0 commit comments