ConformanceTestApi
Defined in: src/storage/testing/conformance.ts:34
The injected test API: pass { describe, test, expect } from your runner.
Methods
Section titled “Methods”describe()
Section titled “describe()”describe(name, fn): void;Defined in: src/storage/testing/conformance.ts:36
Group tests.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
name |
string |
fn |
() => void |
Returns
Section titled “Returns”void
expect()
Section titled “expect()”expect(actual): ConformanceMatchers;Defined in: src/storage/testing/conformance.ts:40
Make an assertion.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
actual |
unknown |
Returns
Section titled “Returns”test()
Section titled “test()”test( name, fn, timeout?): void;Defined in: src/storage/testing/conformance.ts:38
Register one test (the third argument is the timeout in ms).
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
name |
string |
fn |
() => Promise<void> |
timeout? |
number |
Returns
Section titled “Returns”void