UNPKG

jsoniq

Version:

JSONiq implementation for JavaScript

14 lines (10 loc) 392 B
/// <reference path="../../../typings/tsd.d.ts" /> import * as u from "./Utils"; describe("JSON Support: ", () => { it("Navigation 1", () => { return u.expectQuery("let $foo := { a: 1 } let $a := \"a\" return $foo.$a", true).toEqual([1]); }); it("Navigation 2", () => { return u.expectQuery("let $foo := { a: 1 } return $foo.a", true).toEqual([1]); }); });