@nevware21/tripwire - v0.1.2
    Preparing search index...

    Interface INotOp<T>

    Represents an operation that retrieves the keys of an object or an array.

    The type of the result of the operation.

    interface INotOp<T> {
        not: T;
    }

    Type Parameters

    • T

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    not: T

    Negates any performed evaluations that are performed in the assertion chain.

    This operation applies a stateful change to the evaluation chain, meaning that subsequent operations that would normally fail will pass without the need for them to "implement" any knowledge about the not operation. You may call not multiple times to negate the negation.

    import { assert } from "@nevware21/tripwire";

    expect(true).not.ok(); // Fails
    expect(false).not.ok(); // Passes
    expect(true).not.not.ok(); // Passes
    expect(false).not.not.ok(); // Fails