chai-each

A [Chai](http://chaijs.com/) plugin that allows for assertions on each item in an array

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
chai-each
420.0.14 years ago4 years agoMinified + gzip package size for chai-each in KB

Readme

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);