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

dingusjs

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dingusjs

Record-then-assert test double library

latest
Source
npmnpm
Version
0.0.3
Version published
Weekly downloads
1.1K
-24.68%
Maintainers
1
Weekly downloads
 
Created
Source

dingus js

Dingus-js is a record-then-assert test double library for JavaScript and TypeScript.

It is similar to the Python library dingus.

> const {dingus} = require('dingusjs');
> const d = dingus('root');
> ''+d;
'<Dink(root)>'
> ''+d.foo.bar().baz('Hello', 'world');
'<Dink(root.foo.bar().baz())>'
> d.foo.bar().baz.calls.map(([name, args, result]) => args);
[ [ 'Hello', 'world' ] ]

This is not an officially supported Google product.

FAQs

Package last updated on 25 Sep 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