Skip to content

The open-source full-stack studio for Opus 5.5 motion video. Reverse engineering for any video. Code video with HTML: recreate, edit and render. BYOA + BYOK · Motion.md · Images, Video, Music & Voice.

408 B
Raw Blame
// @vitest-environment happy-dom
import { expect, it } from "vitest";
import { elementTargets } from "./elementGsap";

it("keeps only the targets GSAP styles: not a plain object, not an XML-namespace element", () => {
  const box = document.createElement("div");
  const item = document.createElementNS("urn:x", "item");
  expect(elementTargets({ targets: () => [{}, item, box, null] })).toEqual([box]);
});