Nebulous Program Mechanic

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

    Install

    npm i chai-each

    DownloadsWeekly Downloads

    17,006

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    4.24 kB

    Total Files

    6

    Last publish

    Collaborators

    • jamesthomasonjr