mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-22 05:07:05 +00:00
update deps and fix animateCSS_spec test (#3811)
- animateCSS_spec test did throw errors at least with newest dependencies (running locally or on gitlab) - dependency updates: New jest v30 breaks our tests so we have to stay with v29 until fixed (will take a look)
This commit is contained in:
@@ -23,18 +23,18 @@ describe("AnimateCSS integration Test", () => {
|
||||
let styles = window.getComputedStyle(elem);
|
||||
|
||||
if (animationIn && animationIn !== "") {
|
||||
expect(styles._values["animation-name"]).toBe(animationIn);
|
||||
expect(styles._values.get("animation-name")).toBe(animationIn);
|
||||
} else {
|
||||
expect(styles._values["animation-name"]).toBeUndefined();
|
||||
expect(styles._values.get("animation-name")).toBeUndefined();
|
||||
}
|
||||
|
||||
if (animationOut && animationOut !== "") {
|
||||
elem = await helpers.waitForElement(`.compliments.animate__animated.animate__${animationOut}`);
|
||||
expect(elem).not.toBeNull();
|
||||
styles = window.getComputedStyle(elem);
|
||||
expect(styles._values["animation-name"]).toBe(animationOut);
|
||||
expect(styles._values.get("animation-name")).toBe(animationOut);
|
||||
} else {
|
||||
expect(styles._values["animation-name"]).toBeUndefined();
|
||||
expect(styles._values.get("animation-name")).toBeUndefined();
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
Reference in New Issue
Block a user