fixed some failing jasmine tests stemming from previous commit
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
@@ -485,7 +485,7 @@ describe("Tray", () => {
|
||||
expect(firstCell.classList.contains("arc-in")).toBe(true);
|
||||
});
|
||||
|
||||
it("removes .arc-in and force-closes after animationend", () => {
|
||||
it("removes .arc-in and closes after animationend", () => {
|
||||
Tray.placeCard("PC", null);
|
||||
expect(Tray.isOpen()).toBe(true);
|
||||
firstCell.dispatchEvent(new Event("animationend"));
|
||||
@@ -497,6 +497,10 @@ describe("Tray", () => {
|
||||
let called = false;
|
||||
Tray.placeCard("PC", () => { called = true; });
|
||||
firstCell.dispatchEvent(new Event("animationend"));
|
||||
// Simulate the close transition completing (portrait: 'left' property)
|
||||
const te = new Event("transitionend");
|
||||
te.propertyName = "left";
|
||||
wrap.dispatchEvent(te);
|
||||
expect(called).toBe(true);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user