Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dmail/assert

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dmail/assert

[![npm](https://badge.fury.io/js/%40dmail%2Fassert.svg)](https://badge.fury.io/js/%40dmail%2Fcancel) [![build](https://travis-ci.com/dmail/assert.svg?branch=master)](http://travis-ci.com/dmail/assert) [![codecov](https://codecov.io/gh/dmail/assert/branch/

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
33
increased by450%
Maintainers
1
Weekly downloads
 
Created
Source

assert

npm build codecov

compare actual and expected, if they differ throw with a nice message

Installing

Not supported: Made only for my usage for now.

Example

import { assert } from "@dmail/assert"

const actual = { foo: true }
const expected = { foo: false }
assert({
  actual,
  expected,
})
/*
AssertionError: unexpected value at actual.foo
---- expected value ----
false
---- actual value ----
true
*/

— see test/ for more examples

Licensing

MIT

FAQs

Package last updated on 06 Dec 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc