TestContextAssert

sealed external interface TestContextAssert(source)

Properties

Link copied to clipboard
abstract var deepEqual: JsFunction<*, *>

Identical to the deepEqual function from the node:assert module, but bound to the test context.

Link copied to clipboard
abstract var deepStrictEqual: JsFunction<*, *>

Identical to the deepStrictEqual function from the node:assert module, but bound to the test context.

Link copied to clipboard
abstract var doesNotMatch: JsFunction<*, *>

Identical to the doesNotMatch function from the node:assert module, but bound to the test context.

Link copied to clipboard
abstract var doesNotReject: JsFunction<*, *>

Identical to the doesNotReject function from the node:assert module, but bound to the test context.

Link copied to clipboard
abstract var doesNotThrow: JsFunction<*, *>

Identical to the doesNotThrow function from the node:assert module, but bound to the test context.

Link copied to clipboard
abstract var equal: JsFunction<*, *>

Identical to the equal function from the node:assert module, but bound to the test context.

Link copied to clipboard
abstract var fail: JsFunction<*, *>

Identical to the fail function from the node:assert module, but bound to the test context.

Link copied to clipboard
abstract var ifError: JsFunction<*, *>

Identical to the ifError function from the node:assert module, but bound to the test context.

Link copied to clipboard
abstract var match: JsFunction<*, *>

Identical to the match function from the node:assert module, but bound to the test context.

Link copied to clipboard
abstract var notDeepEqual: JsFunction<*, *>

Identical to the notDeepEqual function from the node:assert module, but bound to the test context.

Link copied to clipboard
abstract var notDeepStrictEqual: JsFunction<*, *>

Identical to the notDeepStrictEqual function from the node:assert module, but bound to the test context.

Link copied to clipboard
abstract var notEqual: JsFunction<*, *>

Identical to the notEqual function from the node:assert module, but bound to the test context.

Link copied to clipboard
abstract var notStrictEqual: JsFunction<*, *>

Identical to the notStrictEqual function from the node:assert module, but bound to the test context.

Link copied to clipboard
abstract var ok: JsFunction<*, *>

Identical to the ok function from the node:assert module, but bound to the test context.

Link copied to clipboard
abstract var rejects: JsFunction<*, *>

Identical to the rejects function from the node:assert module, but bound to the test context.

Link copied to clipboard
abstract var strictEqual: JsFunction<*, *>

Identical to the strictEqual function from the node:assert module, but bound to the test context.

Link copied to clipboard
abstract var throws: JsFunction<*, *>

Identical to the throws function from the node:assert module, but bound to the test context.

Functions

Link copied to clipboard
abstract fun snapshot(value: Any?, options: AssertSnapshotOptions = definedExternally)

This function implements assertions for snapshot testing.