New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

qunit-assert-nodes

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qunit-assert-nodes

A QUnit plugin providing a convenient API for batch acceptance assertions

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

QUnit Nodes assertion plugin

Build Status NPM version

The plugin provides a convenient API for batch acceptance assertions

Usage

assert.nodes( batch );

Where batch is an array of assertion request objects, each of the following structure:

{
    node: node /* node reference */,
    assert: "exists" /*  one of exists, visible, hidden, checked */,
    message: "success" /* Assertion result message */
}

Example

test( "Components availability", function( assert ) {
    assert.nodes([
        {node: $("section.example"),
            assert: "exists",
            message: "Body contains section.example"
        },
        {node: $("#save-btn"),
            assert: "visible",
            message: "Save button is visible"
        },
        {node: $("#save-as-xml"),
            assert: "checked",
            message: "'Save as XML' option is checked"
        }
    ]);
});

For more examples, refer to the unit tests.

githalytics.com alpha

Keywords

jquery

FAQs

Package last updated on 25 Jun 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts