expect-methods

1.0.1 • Public • Published

expect-methods

Assert that some object carries all the methods you expect.

API

This module exports one function:

expectMethods(obj, names[, opts])

names should be an array of method names you expect to see on obj. opts is an optional options object that supports these keys:

  • descr: Description of what obj is.

Known issues

  • Needs more/better tests and docs.

 

License

ISC

Readme

Keywords

none

Package Sidebar

Install

npm i expect-methods

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

2.82 kB

Total Files

4

Last publish

Collaborators

  • mk-pmb