# @cuties/assert

> Cutie extension for assert module in Node.

Latest version **1.2.2** (published 2019-05-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @cuties/assert
pnpm add @cuties/assert
yarn add @cuties/assert
bun add @cuties/assert
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score; declining downloads.

## Facts

| | |
|---|---|
| Version | 1.2.2 |
| Published | 2019-05-10 |
| First published | 2018-08-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 15.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | guseyn |
| Maintainers | guseyn |
| Keywords | cutie, assert, node |

## Links

- npm: https://www.npmjs.com/package/@cuties/assert
- Repository: https://github.com/Guseyn/cutie-assert
- Homepage: https://github.com/Guseyn/cutie-assert#readme
- Issues: https://github.com/Guseyn/cutie-assert/issues
- npm.io page: https://npm.io/package/@cuties/assert

## Dependencies (3)

- [@cuties/wall](https://npm.io/package/@cuties/wall.md) ^1.1.2
- [@cuties/cutie](https://npm.io/package/@cuties/cutie.md) ^1.7.5
- [test-executor](https://npm.io/package/test-executor.md) ^1.2.4

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.2.2 (latest) — 2019-05-10
- 1.2.1 — 2019-05-10
- 1.2.0 — 2019-02-21
- 1.1.11 — 2019-02-17
- 1.1.10 — 2019-02-17
- 1.1.9 — 2019-02-16
- 1.1.8 — 2019-02-16
- 1.1.5 — 2018-09-22
- 1.1.4 — 2018-08-28
- 1.1.3 — 2018-08-27
- 1.1.2 — 2018-08-27
- 1.1.2-pre — 2018-08-27

## README

# cutie-assert

[![NPM Version](https://img.shields.io/npm/v/@cuties/assert.svg)](https://npmjs.org/package/@cuties/assert)
[![Build Status](https://travis-ci.org/Guseyn/cutie-assert.svg?branch=master)](https://travis-ci.org/Guseyn/cutie-assert)
[![codecov](https://codecov.io/gh/Guseyn/cutie-assert/branch/master/graph/badge.svg)](https://codecov.io/gh/Guseyn/cutie-assert)

[Cutie](https://github.com/Guseyn/cutie) extension for <b>assert</b> module in Node. It's based on the [Async Tree Pattern](https://github.com/Guseyn/async-tree-patern/blob/master/Async_Tree_Patern.pdf).

## Examples

You can find examples of using this library in the [test directory](https://github.com/Guseyn/cutie-assert/tree/master/test).

## Install

`npm install @cuties/assert`

## Run test

`npm test`

## Run build

`npm run build`

## Usage

```js
const {
  // Here needed async objects from the table below
} = require('@cuties/assert');
```

For more information about parameters in the async objects visit [docs of Node](https://nodejs.org/en/docs/) for <b>assert</b> module.

| Async Object  | Async/sync call | Parameters(default value/description) | Representation result |
| ------------- | ----------------| ---------- | --------------------- |
| `Assertion`     | `assert` | `value, message` | `value` |
| `DeepStrictEqualAssertion` | `assert.deepStrictEqual` | `actual, expected, message` | `actual` |
| `FailedAssertion` | `assert.fail` | `actual, expected, message, operator ('!='), stackStartFunction (assert.fail)` | `thrown error` |
| `FailedAssertionWithMessageOnly` | `assert.fail` | `message` | `thrown error` |
| `IfErrorAssertion` | `assert.ifError` | `value` | `thrown error` or `value`(if it's false) |
| `NotDeepStrictEqualAssertion` | `assert.notDeepStrictEqual` | `actual, expected, message` | `actual` |
| `NotStrictEqualAssertion` | `assert.notStrictEqual` | `actual, expected, message` | `actual` |
| `NotThrownErrorAssertion` | `assert.doesNotThrow` | `block, error, message` | `block` |
| `OkAssertion` | `assert.ok` | `value, message`  | `value` |
| `StrictEqualAssertion` | `assert.strictEqual` | `actual, expected, message` | `actual` |
| `ThrownErrorAssertion` | `assert.throws` | `block, error, message` | `block` |

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