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

@devo/hoity-chai

Package Overview
Dependencies
Maintainers
8
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@devo/hoity-chai

Hoity (High Order ITerators Yielded) Chai plugin

  • 0.1.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
8
Weekly downloads
 
Created
Source

Hoity (High Order ITerators Yielded) Chai plugin

Install

Install with

const chai = require('chai');
chai.use(require('@devo/hoity-chai'));

Provided extensions to Chai

  • .iterable: Checks that the current value is an iterable value. Replaces the current value with its iterator.

  • .iterator: Checks that the current value is an iterator object..

  • .contents: Expects (checks it, in fact) that the current value has passed through an .iterator or .iterable assertion. Then, collects all its contents in an array and pass that array to the assertion chain tail.

  • .eql: Normal .eql has been overloaded to detect iterators (in fact, it detects that appears after an active .iterable or .iterator). Both the value and its argument will be collected in an array, and passed to a recursive .eql assertion.

FAQs

Package last updated on 24 Feb 2022

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