We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfd7252 commit a2fef3aCopy full SHA for a2fef3a
1 file changed
src/tests/templates.spec.ts
@@ -32,7 +32,9 @@ describe("Template paths", () => {
32
});
33
34
it("path.each().to(p => p.x) produces same path string as path.each(p => p.x)", () => {
35
- const viaTo = path((p: User) => p.items).each().to((i) => i.name);
+ const viaTo = path((p: User) => p.items)
36
+ .each()
37
+ .to((i) => i.name);
38
const viaEach = path((p: User) => p.items).each((i) => i.name);
39
expect(viaTo.$).toBe("items.*.name");
40
expect(viaTo.segments).toEqual(["items", "*", "name"]);
0 commit comments