We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 080e0be commit f6c4322Copy full SHA for f6c4322
tests/js/utils/walk.test.js
@@ -0,0 +1,29 @@
1
+import test from "ava";
2
+import {
3
+ FilterAny,
4
+ walk,
5
+} from "../../../django_unicorn/static/unicorn/js/utils";
6
+import { getEl, getDocument } from "../utils.js";
7
+
8
+test.skip("walk", (t) => {
9
+ t.plan(1);
10
11
+ const componentRootHtml = `
12
+<div unicorn:id="5jypjiyb" unicorn:name="text-inputs" unicorn:checksum="GXzew3Km">
13
+ <input unicorn:model="name" type="text" id="name"><br />
14
+ Name:
15
+</div>
16
+ `;
17
+ const doc = getDocument(componentRootHtml);
18
+ const componentRoot = getEl(componentRootHtml);
19
20
+ walk(
21
+ componentRoot,
22
+ (node) => {
23
+ // console.log(node);
24
+ t.is(node, "1234");
25
+ },
26
27
+ doc
28
+ );
29
+});
0 commit comments