# to-have-method

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

Latest version **0.2.1** (published 2015-05-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install to-have-method
pnpm add to-have-method
yarn add to-have-method
bun add to-have-method
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2015-05-20 |
| First published | 2015-05-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Eugene Krevenets |
| Maintainers | hyzhak |
| Keywords | matcher, jasmine, unit tests |

## Links

- npm: https://www.npmjs.com/package/to-have-method
- Repository: https://github.com/hyzhak/to-have-method
- Issues: https://github.com/hyzhak/to-have-method/issues
- npm.io page: https://npm.io/package/to-have-method

## Dependencies (1)

- [jasmine](https://npm.io/package/jasmine.md) ^2.3.1

## Recent versions

- 0.2.1 (latest) — 2015-05-20
- 0.2.0 — 2015-05-20
- 0.1.0 — 2015-05-15

## README

# toHaveMethod [![npm](https://img.shields.io/npm/v/to-have-method.svg)](https://www.npmjs.com/package/to-have-method) [![Build Status](https://travis-ci.org/hyzhak/to-have-method.svg?branch=master)](https://travis-ci.org/hyzhak/to-have-method)

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

```javascript
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');
});

```

---
_Source: https://npm.io/package/to-have-method · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
