expect-partial-array
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

expect-partial-array

This jest matcher could be used for example to expect arguments of a function or cli to be given and in correct order.

Installation

$ npm install --save-dev expect-partial-array
# or
$ yarn add -D expect-partial-array

Usage

import "expect-partial-array";

expect(["some", "value", 5]).toMatchPartialArray(["some", 5]);

expect({ key: ["k", "e", "y"] }).toEqual({
  key: expect.toMatchPartialArray(["k", "y"]),
});

Readme

Keywords

none

Package Sidebar

Install

npm i expect-partial-array

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

3.42 kB

Total Files

7

Last publish

Collaborators

  • knisterpeter