assertMod

object assertMod
class Object
trait Matchable
class Any

Type members

Classlikes

@JSImport("assert", "AssertionError") @native @JSType
class AssertionError() extends StObject with Error
@JSImport("assert", "CallTracker") @native @JSType
class CallTracker() extends StObject
@native @JSType
trait CallTrackerReportInformation extends StObject
Companion
object

Types

type AssertPredicate = RegExp | Instantiable0[Object] | Function1[Any, Boolean] | Object | Error

Value members

Concrete methods

@inline
def `match`(value: String, regExp: RegExp): Unit
@inline
def `match`(value: String, regExp: RegExp, message: String): Unit
@inline
def `match`(value: String, regExp: RegExp, message: Error): Unit
@inline
def apply(value: Any): Boolean

An alias of assert.ok().

An alias of assert.ok().

@inline
def apply(value: Any, message: String): Boolean
@inline
def apply(value: Any, message: Error): Boolean
@inline
def deepEqual(actual: Any, expected: Any): Unit
@inline
def deepEqual(actual: Any, expected: Any, message: String): Unit
@inline
def deepEqual(actual: Any, expected: Any, message: Error): Unit
@inline
def deepStrictEqual[T](actual: Any, expected: T): Boolean
@inline
def deepStrictEqual[T](actual: Any, expected: T, message: String): Boolean
@inline
def deepStrictEqual[T](actual: Any, expected: T, message: Error): Boolean
@inline
def doesNotMatch(value: String, regExp: RegExp): Unit
@inline
def doesNotMatch(value: String, regExp: RegExp, message: String): Unit
@inline
def doesNotMatch(value: String, regExp: RegExp, message: Error): Unit
@inline
def doesNotReject(block: Function0[Promise[Any]]): Promise[Unit]
@inline
def doesNotReject(block: Function0[Promise[Any]], error: AssertPredicate): Promise[Unit]
@inline
def doesNotReject(block: Function0[Promise[Any]], error: AssertPredicate, message: String): Promise[Unit]
@inline
def doesNotReject(block: Function0[Promise[Any]], error: AssertPredicate, message: Error): Promise[Unit]
@inline
def doesNotReject(block: Function0[Promise[Any]], message: String): Promise[Unit]
@inline
def doesNotReject(block: Function0[Promise[Any]], message: Error): Promise[Unit]
@inline
def doesNotReject(block: Promise[Any]): Promise[Unit]
@inline
def doesNotReject(block: Promise[Any], error: AssertPredicate): Promise[Unit]
@inline
def doesNotReject(block: Promise[Any], error: AssertPredicate, message: String): Promise[Unit]
@inline
def doesNotReject(block: Promise[Any], error: AssertPredicate, message: Error): Promise[Unit]
@inline
def doesNotReject(block: Promise[Any], message: String): Promise[Unit]
@inline
def doesNotReject(block: Promise[Any], message: Error): Promise[Unit]
@inline
def doesNotThrow(block: Function0[Any]): Unit
@inline
def doesNotThrow(block: Function0[Any], error: AssertPredicate): Unit
@inline
def doesNotThrow(block: Function0[Any], error: AssertPredicate, message: String): Unit
@inline
def doesNotThrow(block: Function0[Any], error: AssertPredicate, message: Error): Unit
@inline
def doesNotThrow(block: Function0[Any], message: String): Unit
@inline
def doesNotThrow(block: Function0[Any], message: Error): Unit
@inline
def equal(actual: Any, expected: Any): Unit
@inline
def equal(actual: Any, expected: Any, message: String): Unit
@inline
def equal(actual: Any, expected: Any, message: Error): Unit
@inline
def fail(): Nothing
@inline
def fail(actual: Any, expected: Any): Nothing
@inline
def fail(actual: Any, expected: Any, message: String): Nothing
@inline
def fail(actual: Any, expected: Any, message: String, operator: String): Nothing
@inline
def fail(actual: Any, expected: Any, message: String, operator: String, stackStartFn: Function): Nothing
@inline
def fail(actual: Any, expected: Any, message: String, operator: Unit, stackStartFn: Function): Nothing
@inline
def fail(actual: Any, expected: Any, message: Error): Nothing
@inline
def fail(actual: Any, expected: Any, message: Error, operator: String): Nothing
@inline
def fail(actual: Any, expected: Any, message: Error, operator: String, stackStartFn: Function): Nothing
@inline
def fail(actual: Any, expected: Any, message: Error, operator: Unit, stackStartFn: Function): Nothing
@inline
def fail(actual: Any, expected: Any, message: Unit, operator: String): Nothing
@inline
def fail(actual: Any, expected: Any, message: Unit, operator: String, stackStartFn: Function): Nothing
@inline
def fail(actual: Any, expected: Any, message: Unit, operator: Unit, stackStartFn: Function): Nothing
@inline
def fail(message: String): Nothing
@inline
def fail(message: Error): Nothing
@inline
def ifError(value: Any): UndefOr[Boolean]
@inline
def notDeepEqual(actual: Any, expected: Any): Unit
@inline
def notDeepEqual(actual: Any, expected: Any, message: String): Unit
@inline
def notDeepEqual(actual: Any, expected: Any, message: Error): Unit
@inline
def notDeepStrictEqual(actual: Any, expected: Any): Unit
@inline
def notDeepStrictEqual(actual: Any, expected: Any, message: String): Unit
@inline
def notDeepStrictEqual(actual: Any, expected: Any, message: Error): Unit
@inline
def notEqual(actual: Any, expected: Any): Unit
@inline
def notEqual(actual: Any, expected: Any, message: String): Unit
@inline
def notEqual(actual: Any, expected: Any, message: Error): Unit
@inline
def notStrictEqual(actual: Any, expected: Any): Unit
@inline
def notStrictEqual(actual: Any, expected: Any, message: String): Unit
@inline
def notStrictEqual(actual: Any, expected: Any, message: Error): Unit
@inline
def ok(value: Any): Boolean
@inline
def ok(value: Any, message: String): Boolean
@inline
def ok(value: Any, message: Error): Boolean
@inline
def rejects(block: Function0[Promise[Any]]): Promise[Unit]
@inline
def rejects(block: Function0[Promise[Any]], error: AssertPredicate): Promise[Unit]
@inline
def rejects(block: Function0[Promise[Any]], error: AssertPredicate, message: String): Promise[Unit]
@inline
def rejects(block: Function0[Promise[Any]], error: AssertPredicate, message: Error): Promise[Unit]
@inline
def rejects(block: Function0[Promise[Any]], message: String): Promise[Unit]
@inline
def rejects(block: Function0[Promise[Any]], message: Error): Promise[Unit]
@inline
def rejects(block: Promise[Any]): Promise[Unit]
@inline
def rejects(block: Promise[Any], error: AssertPredicate): Promise[Unit]
@inline
def rejects(block: Promise[Any], error: AssertPredicate, message: String): Promise[Unit]
@inline
def rejects(block: Promise[Any], error: AssertPredicate, message: Error): Promise[Unit]
@inline
def rejects(block: Promise[Any], message: String): Promise[Unit]
@inline
def rejects(block: Promise[Any], message: Error): Promise[Unit]
@inline
def strictEqual[T](actual: Any, expected: T): Boolean
@inline
def strictEqual[T](actual: Any, expected: T, message: String): Boolean
@inline
def strictEqual[T](actual: Any, expected: T, message: Error): Boolean
@inline
def throws(block: Function0[Any]): Unit
@inline
def throws(block: Function0[Any], error: AssertPredicate): Unit
@inline
def throws(block: Function0[Any], error: AssertPredicate, message: String): Unit
@inline
def throws(block: Function0[Any], error: AssertPredicate, message: Error): Unit
@inline
def throws(block: Function0[Any], message: String): Unit
@inline
def throws(block: Function0[Any], message: Error): Unit

Concrete fields

@JSImport("assert") @native
val ^: Any
@JSImport("assert", "strict") @native