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

    Interface IOwnOp<R>

    Represents an interface that provides assertion operations based on the existence of own properties on an object.

    interface IOwnOp<R> {
        contain: IIncludeOp<R>;
        contains: IIncludeOp<R>;
        include: IIncludeOp<R>;
        includes: IIncludeOp<R>;
        iterator: SymbolFn;
        property: PropertyFn;
        propertyDescriptor: PropertyDescriptorFn;
    }

    Type Parameters

    • R

      The type of the result of the operation.

    Index

    Properties

    contain: IIncludeOp<R>

    A property assertion that validates the existence of a property on an object.

    The name of the property to validate.

    contains: IIncludeOp<R>

    A property assertion that validates the existence of a property on an object.

    The name of the property to validate.

    include: IIncludeOp<R>

    A property assertion that validates the existence of a property on an object.

    The name of the property to validate.

    includes: IIncludeOp<R>

    A property assertion that validates the existence of a property on an object.

    The name of the property to validate.

    iterator: SymbolFn

    Asserts that the object has the Symbol.iterator property.

    expect({ [Symbol.iterator]: () => {} }).has.iterator();
    
    property: PropertyFn

    A property assertion that validates the existence of a property on an object.

    The name of the property to validate.

    propertyDescriptor: PropertyDescriptorFn

    A property assertion that validates the existence of a property descriptor on an object.

    The name of the property to validate.