Skip to content

Assert

[<Interface>]
type Assert =
    static member Create (register: Action<string,(obj array -> unit)>) : Assert
    abstract member register (name: string, fn: obj array -> unit) : unit
AssemblyXantham.Fable.Node
Attributes[<Interface>]

Methods

static member Create (register: Action<string,(obj array -> unit)>) : Assert
abstract member register (name: string, fn: obj array -> unit) : unit

Defines a new assertion function with the provided name and function. If an assertion already exists with the same name, it is overwritten.

@since v22.14.0