I am having difficulty converting the following async tests into jasmine 2's done()
syntax.
reset()
sets a value to 0
start()
begins a count of time
finish()
sets the count to 100
status()
gets the current count
it('frequentl calls should work', function () {
runs(function () { reset(); });
waits(10);
runs(function () { start(); });
waits(10);
runs(function () { finish(); });
waits(10);
runs(function () { expect([1, status()]).toEqual([1, 100]); });
waits(200);
runs(function () { expect([2, status()]).toEqual([2, 100]); });
});
Aucun commentaire:
Enregistrer un commentaire