Skip to content

Commit f6c4322

Browse files
committed
Add skipped test that is incomplete.
1 parent 080e0be commit f6c4322

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

tests/js/utils/walk.test.js

+29
Original file line numberDiff line numberDiff line change
@@ -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+
FilterAny,
27+
doc
28+
);
29+
});

0 commit comments

Comments
 (0)