0.2.1 • Published 9 years ago

to-have-method v0.2.1

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

toHaveMethod npm Build Status

toHaveMethod matcher for Jasmine (http://jasmine.github.io/) to check whether object has method or not.

Installation

npm install to-have-property --save-dev

How to use

require('to-have-method');

it('should have method', function() {
    expect({ m: function() {} }).toHaveMethod('m');
});

it('should have methods', function() {
    expect({ m1: function() {}, m2: function() {} }).toHaveMethods('m1', 'm2');
});
0.2.1

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago