1.0.1 • Published 6 years ago
expect-methods v1.0.1
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 whatobj
is.
Known issues
- Needs more/better tests and docs.
License
ISC