chai-each
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

Chai Each

A Chai plugin that allows for assertions on each item in an array

Chai Each was inspired by Chai Things

Examples

// Each item has a "value" property that is below 20
[{"value": 4}, {"value": 11}, {"value": 15}].should.each.have.property('value').that.is.below(20)

Installation

$ yarn add chai-each

Usage

import { use } from "chai";
import * as chaiEach from "chai-each";
use(chaiEach);

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    19,517
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    19,517

Package Sidebar

Install

npm i chai-each

Weekly Downloads

19,517

Version

0.0.1

License

MIT

Unpacked Size

4.24 kB

Total Files

6

Last publish

Collaborators

  • jamesthomasonjr