# karma-should

> Use should.js with karma tests

Latest version **1.0.0** (published 2015-07-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install karma-should
pnpm add karma-should
yarn add karma-should
bun add karma-should
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-07-24 |
| First published | 2014-12-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Maintainers | ruimarinho |
| Keywords | karma, karma-plugin, should, shouldjs, should.js |

## Links

- npm: https://www.npmjs.com/package/karma-should
- Repository: https://github.com/seegno/karma-should
- Issues: https://github.com/seegno/karma-should/issues
- npm.io page: https://npm.io/package/karma-should

## Recent versions

- 1.0.0 (latest) — 2015-07-24
- 0.0.1 — 2014-12-11

## README

# karma-should

Use [should.js](https://github.com/shouldjs/should.js) (2.0.2+) with [karma](http://karma-runner.github.io) tests.

## Status

[![npm version][npm-image]][npm-url]

## Installation

Install the package via `npm`:

```bash
$ npm install karma-should --save
```

## Usage

Add `should` as part of `frameworks` property configuration of `karma`. In the following example, the testing framework `mocha` is also included although not required.

```js
module.exports = function(config) {
  config.set({
    frameworks: ['mocha', 'should']
  });
};
```

By default, `karma` loads all `plugins` that are siblings to it and their name matches `karma-*` so no additional configuration is required.

Load `karma` and all `should` assertions will now available in the tests:

```js
describe('karma tests with should', function() {
  var user = {
    name: 'foo'
  };

  it('should have a name', function() {
    user.should.have.property('name', 'foo');
  });
});
```

## License

MIT

[npm-image]: https://img.shields.io/npm/v/karma-should.svg?style=flat-square
[npm-url]: https://npmjs.org/package/karma-should

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