var asyncplify = require('../dist/asyncplify');
var common = require('./common');

describe('debounce', function () {
    var source = asyncplify
        .interval(2)
        .debounce(5)
		.take(1);

    common.itShouldClose(source);
    common.itShouldNotProduceAnError(source);
    common.itShouldEndOnce(source);
    common.itShouldEndAsync(source);
    common.itShouldEmitValues(source, [2]);
})
var asyncplify = require('../dist/asyncplify');
var common = require('./common');

describe('debounce', function () {
    var source = asyncplify
        .interval(5)
        .debounce(10)
		.take(1);

    common.itShouldClose(source);
    common.itShouldNotProduceAnError(source);
    common.itShouldEndOnce(source);
    common.itShouldEndAsync(source);
    common.itShouldEmitValues(source, [2]);
})
increase the timeout of debounce to make sure it pass