Socket
Socket
Sign inDemoInstall

beater-double

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    beater-double

A test double library for beater.


Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Install size
8.05 kB
Created
Weekly downloads
 

Readme

Source

beater-double

A test double library for beater.

Installation

$ npm install --save-dev beater-double

Usage

import assert from 'assert';
import { spyFn } from 'beater-double';

const f = spyFn((...ns: number[]) => JSON.stringify(ns));
assert.deepStrictEqual(f(123), '[123]');
assert.deepStrictEqual(f(456, 789), '[456,789]');
assert.deepStrictEqual(f.calls, [[123], [456, 789]]);

Badges

npm version Travis CI

License

MIT

Author

bouzuya <m@bouzuya.net> (https://bouzuya.net/)

Keywords

FAQs

Last updated on 08 Feb 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc