jasmine_eventually
Version:
Asynchronous matching for Jasmine Test Framework
18 lines (14 loc) • 420 B
JavaScript
/*global jasmineEventually*/
/*jslint jasmine: true*/
describe('Wrapping expect with jasmineEventually', function() {
beforeEach(function() {
jasmineEventually.setup();
});
it('allows to match asynchronously with implcit polling', function() {
var spy = jasmine.createSpy();
setTimeout(function() {
spy();
}, 100);
expect(spy).eventually.toHaveBeenCalled();
});
});