package
Just pending for callback.
npm install peddingGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 1 packages.
12.9 kB
Includes dependencies.
Useful tools for unit test: Just pending for callback.
npm install peddingCommonJS
const { pending } = require('pedding');
it('should request two resources', done => {
done = pending(2, done);
http.get('http://fengmk2.github.com', res => {
done();
});
http.get('http://www.taobao.com', res => {
done();
});
});ESM and TypeScript
import { pending } from 'pedding';
it('should request two resources', done => {
done = pending(2, done);
http.get('http://fengmk2.github.com', res => {
done();
});
http.get('http://www.taobao.com', res => {
done();
});
});Made with contributors-img.
dead_horse
dead_horse@qq.com