New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

assert-match

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

assert-match - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

2

package.json
{
"name": "assert-match",
"version": "0.0.3",
"version": "0.0.4",
"description": "assert's matching features",

@@ -5,0 +5,0 @@ "main": "dst/index.js",

@@ -12,2 +12,15 @@ [![Build Status](https://travis-ci.org/rmdm/assert-match.svg?branch=master)](https://travis-ci.org/rmdm/assert-match)

Rationale
=========
There are times when I need to check only subset of an object porperties to have
specific values. Hence this module. An alternative approach would be to use a
combination of standard `assert` and some utility library providing matching
capability, for example `_.isMatch`. `assert-match` has the following
advantages:
- it provides your test runner with the hints on actual and expected
outcomes of the test
- gives your more consistent results with family of standard `deep`-assertions
Installation

@@ -20,9 +33,9 @@ ============

Assertions
==========
Usage
=====
### ```assert (obj)```
The function returned by imported module. Can be used to extend any passed
**obj** object in it, for example, standard `assert` module:
The function returned by the module. Can be used to extend any passed **obj**
object in it, for example, standard `assert` module:

@@ -48,2 +61,5 @@ ```javascript

Assertions
----------
### ```assert.match (actual, expected, message)```

@@ -77,3 +93,3 @@

import assert from 'assert'
import assert from 'assert-match'

@@ -80,0 +96,0 @@ describe('examples', function () {

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