New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@cuties/assert

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cuties/assert

Cutie extension for assert module in Node.

latest
Source
npmnpm
Version
1.2.2
Version published
Maintainers
1
Created
Source

cutie-assert

NPM Version Build Status codecov

Cutie extension for assert module in Node. It's based on the Async Tree Pattern.

Examples

You can find examples of using this library in the test directory.

Install

npm install @cuties/assert

Run test

npm test

Run build

npm run build

Usage

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 for assert module.

Async ObjectAsync/sync callParameters(default value/description)Representation result
Assertionassertvalue, messagevalue
DeepStrictEqualAssertionassert.deepStrictEqualactual, expected, messageactual
FailedAssertionassert.failactual, expected, message, operator ('!='), stackStartFunction (assert.fail)thrown error
FailedAssertionWithMessageOnlyassert.failmessagethrown error
IfErrorAssertionassert.ifErrorvaluethrown error or value(if it's false)
NotDeepStrictEqualAssertionassert.notDeepStrictEqualactual, expected, messageactual
NotStrictEqualAssertionassert.notStrictEqualactual, expected, messageactual
NotThrownErrorAssertionassert.doesNotThrowblock, error, messageblock
OkAssertionassert.okvalue, messagevalue
StrictEqualAssertionassert.strictEqualactual, expected, messageactual
ThrownErrorAssertionassert.throwsblock, error, messageblock

Keywords

cutie

FAQs

Package last updated on 10 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts