mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-26 15:33:50 +00:00
18 lines
363 B
JavaScript
18 lines
363 B
JavaScript
describe("iD.ui.flash", function () {
|
|
var clock;
|
|
|
|
beforeEach(function () {
|
|
clock = sinon.useFakeTimers();
|
|
});
|
|
|
|
afterEach(function () {
|
|
clock.restore();
|
|
});
|
|
|
|
it('leaves after 1000 ms', function () {
|
|
var flash = iD.ui.flash();
|
|
clock.tick(1610);
|
|
expect(flash.node().parentNode).to.be.null;
|
|
});
|
|
});
|