forked from extern/bruno
test: minor
This commit is contained in:
parent
e777eed00d
commit
209f30998e
@ -125,4 +125,4 @@ function get(source, path, ...filters) {
|
||||
|
||||
module.exports = {
|
||||
get
|
||||
};
|
||||
};
|
||||
|
@ -39,7 +39,8 @@ describe("get", () => {
|
||||
["customer.orders.foo", undefined],
|
||||
["..customer.foo", undefined],
|
||||
["..address", [{ city: "bangalore" }]], // .. will return array
|
||||
["..address[0]", { city: "bangalore" }]
|
||||
["..address[0]", { city: "bangalore" }],
|
||||
["..items..amount[?][0]", 40, amt => amt > 30]
|
||||
])("%s should be %j %s", (expr, result, filter = undefined) => {
|
||||
expect(get(data, expr, filter)).toEqual(result);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user