async-mock

A convenient way to mock asyc calls

Usage no npm install needed!

<script type="module">
  import asyncMock from 'https://cdn.skypack.dev/async-mock';
</script>

README

Async Mock

A convenient way to mock anticipated async calls.

var asyncMock = require('async-mock');
asyncMock(5*1000,function(){
            console.log('I just executed!');
})