diff options
Diffstat (limited to 'docs/interfaces/test.Test.md')
| -rw-r--r-- | docs/interfaces/test.Test.md | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/docs/interfaces/test.Test.md b/docs/interfaces/test.Test.md index b503cc0..583569a 100644 --- a/docs/interfaces/test.Test.md +++ b/docs/interfaces/test.Test.md @@ -1,23 +1,29 @@ [ts-types-lang](../README.md) / [Modules](../modules.md) / [test](../modules/test.md) / Test -# Interface: Test<_m, _effs\> +# Interface: Test<_M, _Effs\> [test](../modules/test.md).Test -Generic interface for declaring effects +Create a test block **`Example`** ```ts -interface MyEffect extends Effect<string[]> {} +type main = [ + Test<"should check if result is 21", [ + Bind<EvalSomeEffect<2, 3>, <a extends number>() => AssertEquals<a, 21>>, + // equivalent to... + Bind<EvalSomeEffect<2, 3>, AssertEqualsK<21>>, + ]> +] ``` ## Type parameters | Name | Type | Description | | :------ | :------ | :------ | -| `_m` | extends `string` | The output generated by the effect (defaults to `unknown`) | -| `_effs` | extends [`Effect`](effect.Effect.md)[] | - | +| `_M` | extends `string` | description of the test | +| `_Effs` | extends [`Effect`](effect.Effect.md)[] | List of effects to evaluate | ## Hierarchy |
