Record-then-assert test double library
npm install dingusjsDingus-js is a record-then-assert test double library for JavaScript and
TypeScript.
It is similar to the Python library dingus.
``node``
> const {dingus} = require('dingusjs');
> const d = dingus('root');
> ''+d;
'
> ''+d.foo.bar().baz('Hello', 'world');
'
> d.foo.bar().baz.calls.map(([name, args, result]) => args);
[ [ 'Hello', 'world' ] ]
This is not an officially supported Google product.