# confirm-that

> A small testing library that simply checks that a function operates correctly

Latest version **0.0.1** (published 2014-05-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install confirm-that
pnpm add confirm-that
yarn add confirm-that
bun add confirm-that
```

## 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.0.1 |
| Published | 2014-05-09 |
| First published | 2014-05-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Hoolean |
| Maintainers | hoolean |
| Keywords | testing, lightweight |

## Links

- npm: https://www.npmjs.com/package/confirm-that
- Repository: https://github.com/Hoolean/confirm-that
- Issues: https://github.com/Hoolean/confirm-that/issues
- npm.io page: https://npm.io/package/confirm-that

## 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
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads
- [aws-elasticsearch-connector](https://npm.io/package/aws-elasticsearch-connector.md) — 37.4K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2014-05-09

## README

confirm-that
============

A lightweight testing framework for Node.js that checks that a statement is correct with a test function.

Example usage - tests/test.js

```javascript
var confirmThat = require('confirm-that');
var util = require('super-cool-util-class')

confirmThat('reverse function works correctly', function () {
  return util.reverse('Ham Sandwich') === 'hciwdnaS maH';
});
```

If true is returned, confirm-that will log its success. Else, it will log its failure and exit with -1;

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