# chai-rage

> Tests not working? Express your rage in test code.

Latest version **0.1.0** (published 2015-12-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install chai-rage
pnpm add chai-rage
yarn add chai-rage
bun add chai-rage
```

## 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.1.0 |
| Published | 2015-12-16 |
| First published | 2015-09-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Arjan Frans |
| Maintainers | arjanfrans |
| Keywords | testing, not working, chai, chai-rage, bad words, chai plugin, rage |

## Links

- npm: https://www.npmjs.com/package/chai-rage
- Repository: https://github.com/ArjanFrans/chai-rage
- Homepage: https://github.com/ArjanFrans/chai-rage#readme
- Issues: https://github.com/ArjanFrans/chai-rage/issues
- npm.io page: https://npm.io/package/chai-rage

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2015-12-16
- 0.0.3 — 2015-09-16
- 0.0.2 — 2015-09-16
- 0.0.1 — 2015-09-16

## README

# chai-rage

[![NPM](https://nodei.co/npm/chai-rage.png?compact=true)](https://www.npmjs.com/package/chai-rage)

[![Build Status](https://travis-ci.org/arjanfrans/chai-rage.svg)](https://travis-ci.org/arjanfrans/chai-rage)
[![Coverage Status](https://coveralls.io/repos/arjanfrans/chai-rage/badge.svg?branch=master&service=github)](https://coveralls.io/github/arjanfrans/chai-rage?branch=master)
[![devDependency Status](https://david-dm.org/arjanfrans/chai-rage/dev-status.svg)](https://david-dm.org/arjanfrans/chai-rage#info=devDependencies)

A plugin for [Chai Assertion Library](http://chaijs.com/) that allows you to rage in your test code.

It basically allows you to use custom words in an assertion chain. The added words do not do anything.

**WARNING:** Source code contains bad words!

*In case you didn't get it yet; do not use this plugin for anything serious.*

## Installation

```
npm install --save-dev chai-rage
```

## Example

```Javascript
var chai = require('chai');
var expect = chai.expect;

// Initialize with custom rage words. Look in the source code for built in words.
var rage = require('chai-rage')(['anarray', 'ofof', 'badword', 'ssss']);

chai.use(rage);

describe('some test', function () {

    it('allows use of custom words', function () {
        expect(['test', 'test2']).to.have.badword.length(2);
        expect(['test', 'test2']).to.not.be.a.badword('integer');
    });

});
```

See [examples](https://github.com/arjanfrans/chai-rage/tree/master/example).

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