···11+/*
22+ * These tests were inspired by idiomorph.
33+ * Here's their license:
44+ *
55+ * Zero-Clause BSD
66+ * =============
77+ *
88+ * Permission to use, copy, modify, and/or distribute this software for
99+ * any purpose with or without fee is hereby granted.
1010+ *
1111+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
1212+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
1313+ * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE
1414+ * FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY
1515+ * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
1616+ * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
1717+ * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1818+ */
1919+120import { describe, it, expect, beforeEach, afterEach } from "vitest"
221import { morph, morphInner } from "../src/morphlex"
322
+28-1
test/morphlex-morphdom.test.ts
···11+/*
22+ * These tests were inspired by morphdom.
33+ * Here's their license:
44+ *
55+ * The MIT License (MIT)
66+ *
77+ * Copyright (c) Patrick Steele-Idem <pnidem@gmail.com> (psteeleidem.com)
88+ *
99+ * Permission is hereby granted, free of charge, to any person obtaining a copy
1010+ * of this software and associated documentation files (the "Software"), to deal
1111+ * in the Software without restriction, including without limitation the rights
1212+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1313+ * copies of the Software, and to permit persons to whom the Software is
1414+ * furnished to do so, subject to the following conditions:
1515+ *
1616+ * The above copyright notice and this permission notice shall be included in
1717+ * all copies or substantial portions of the Software.
1818+ *
1919+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2020+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2121+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2222+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2323+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2424+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2525+ * THE SOFTWARE.
2626+ */
2727+128import { describe, it, expect, beforeEach, afterEach } from "vitest"
229import { morph } from "../src/morphlex"
330···556583 const from = parseHTML(fromHTML)
557584 const to = parseHTML(toHTML)
558585559559- const originalElements = Array.from(from.children).map(el => el)
586586+ const originalElements = Array.from(from.children).map((el) => el)
560587561588 morph(from, to)
562589