Displaying 1 to 20 from 22 results

sinon-chai - Extends Chai with assertions for the Sinon.JS mocking framework.

  •    Javascript

Sinon–Chai provides a set of custom assertions for using the Sinon.JS spy, stub, and mocking framework with the Chai assertion library. You get all the benefits of Chai with all the powerful tools of Sinon.JS. All of your favorite Sinon.JS assertions made their way into Sinon–Chai. We show the should syntax here; the expect equivalent is also available.

chai-as-promised - Extends Chai with assertions about promises.

  •    Javascript

Chai as Promised extends Chai with a fluent language for asserting facts about promises. Notice: either return or notify(done) must be used with promise assertions. This can be a slight departure from the existing format of assertions being used on a project or by a team. Those other assertions are likely synchronous and thus do not require special handling.

chai-jquery - jQuery assertions for chai

  •    Javascript

chai-jquery is an extension to the chai assertion library that provides a set of jQuery-specific assertions. Note that jquery.js and chai.js can be inserted one before another (order does not matter here).

vue-test - :checkered_flag: Component testing for Vue.js

  •    Javascript

The library is divided into two parts: the mount() function and the chai assertion library plugin. The mount() function is used for mounting components in your tests without having to directly interact with the DOM, and the chai plugin can be used to write readable tests with understandable output for mounted Vue components. The mount() function takes two arguments, a Vue component, and some optional properties, and returns a wrapped mounted component with some useful utility functions.

chai-jq - An alternate jQuery assertion library for Chai.

  •    Javascript

chai-jq is an alternate plugin for the Chai assertion library to provide jQuery-specific assertions.chai-jq works in your browser, with AMD/RequireJS, and in Node.js with JsDom.

chai-fuzzy - fuzzy matchers for chai, based on underscore

  •    Javascript

Fuzzy matchers for chai based on underscore and inspired by jasmine. Make assertions that values have all the same attributes and values without asserting strict object equality.

chai-shallow-deep-equal - Shallow deep equal for chai

  •    Javascript

Will shallowly perform a deep equal assertion. In other terms is consist of checking that an object, or objects graph, is contained within another one (see examples bellow).

chai-json-schema - Chai plugin for JSON Schema v4

  •    Javascript

Chai plugin with assertions to validate values against JSON Schema v4. Assert both simple values and complex objects with the rich collection of validation terms (examples).

chai-spies - Spies for Chai Assertion Library.

  •    Javascript

This is an addon plugin for the chai assertion library. It provides the most basic function spy ability and tests. This library is primarily meant to serve as a starting point for anyone interested in developing chai plugins. If developing a module, you are welcome to use this as a starting point. I also encourage the use of the compile tools to allow modules to work both in node.js and the browser.

chai-stats - Statistical and additional numerical assertions for the Chai Assertion Library.

  •    Javascript

Statistical and additional numerical assertions for the Chai Assertion Library. Chai spies are available on npm.

chai-things - Chai support for assertions on array elements

  •    CoffeeScript

Chai Things adds support to Chai for assertions on array elements. Use the something property on an array to test whether the assertion holds for one of its elements.

chai-timers - Timers, stopwatches, and other time based assertions for the Chai Assertion Library.

  •    Javascript

Timers, stopwatches, and other time based assertions for the Chai Assertion Library.

chai-change - Assert that a change you expected to happen, happened, with this chai plugin

  •    Javascript

Assert that a change you expected to happen, happened, with this plugin for the chai assertion library. The plugin works in node and the browser, asynchronously or synchronously. This is more robust as it avoids false positives: in this example, if users.count() was already 1 and users.create() was not implemented, the first example would still pass. Using the change expectation, since there was not a change {by: 1} from the starting value, the test would correctly fail.

chai-fs - Chai assertions for Node.js filesystem

  •    Javascript

Chai assertion plugin for the Node.js filesystem API. Uses path and synchronous fs to assert files and directories. All assertions are available in expect, should and assert style, and support the optional, message parameter.

chai-smoothie - Chai assertions for Serenity/JS and Protractor

  •    TypeScript

Chai Smoothie smooths out the sharp angles of your Protractor-powered automated web tests. The library provides a set of custom Chai assertions to help your Protractor-based Serenity/JS tests express their intent better, give assertion errors more meaning, and reduce the amount of time your team spends troubleshooting the failures.

chai-like - A JSON matcher for chai

  •    Javascript

A JSON matcher for chai. This is really useful when you are testing API and want to ignore some attributes like: updatedAt, createdAt, id. Compare two JSON and ignore some keys based on expectation.

chai-datetime - Matchers for chai to help with common date equality assertions against JavaScript Date objects

  •    Javascript

Matchers for chai to help with common date comparison assertions against JavaScript Date objects. Comparing date objects in JavaScript is not based on value, which requires you to call getTime() to ensure the values match. These matchers remove the need to do that. Additionally when comparing getTime() values with the standard chai equality matcher you don't get very readable output because you're comparing epoch seconds.

We have large collection of open source products. Follow the tags from Tag Cloud >>

Open source products are scattered around the web. Please provide information about the open source projects you own / you use. Add Projects.