mirror of
https://github.com/fluencelabs/jsonpath
synced 2025-04-26 18:02:14 +00:00
jsonpath-rs 0.2.3
This commit is contained in:
parent
13816df970
commit
6ad4432737
@ -14,7 +14,7 @@ exclude = ["artifacts.json", "index.node"]
|
|||||||
neon-build = "0.2.0"
|
neon-build = "0.2.0"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
jsonpath_lib = "0.2.2"
|
jsonpath_lib = "0.2.3"
|
||||||
#jsonpath_lib = { path = "../../" }
|
#jsonpath_lib = { path = "../../" }
|
||||||
neon = "0.2.0"
|
neon = "0.2.0"
|
||||||
serde_json = { version = "1.0", features = ["preserve_order"] }
|
serde_json = { version = "1.0", features = ["preserve_order"] }
|
||||||
|
@ -894,35 +894,35 @@ describe('ISSUE test', () => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// it('Invalid wildcard filter results #7', (done) => {
|
it('Invalid wildcard filter results #7', (done) => {
|
||||||
//
|
|
||||||
// function select(json, expected, paths) {
|
function select(json, expected, paths) {
|
||||||
// for (var i = 0 ; i < paths.length ; i++) {
|
for (var i = 0 ; i < paths.length ; i++) {
|
||||||
// let result = jsonpath.select(json, paths[i]);
|
let result = jsonpath.select(json, paths[i]);
|
||||||
// if (JSON.stringify(result) !== JSON.stringify(expected)) {
|
if (JSON.stringify(result) !== JSON.stringify(expected)) {
|
||||||
// throw Error("Error: " + paths[i]);
|
throw Error("Error: " + paths[i]);
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
//
|
|
||||||
// select(
|
select(
|
||||||
// ["string", 42, { "key": "value" }, [0, 1]],
|
["string", 42, { "key": "value" }, [0, 1]],
|
||||||
// ["string", 42, { "key": "value" }, [0, 1]],
|
["string", 42, { "key": "value" }, [0, 1]],
|
||||||
// ["$.*", "$[*]"]
|
["$.*", "$[*]"]
|
||||||
// );
|
);
|
||||||
//
|
|
||||||
// select(
|
select(
|
||||||
// ["string", 42, { "key": "value" }, [0, 1]],
|
["string", 42, { "key": "value" }, [0, 1]],
|
||||||
// [ "string", 42, { "key" : "value" }, [ 0, 1 ], "value", 0, 1 ],
|
[ "string", 42, { "key" : "value" }, [ 0, 1 ], "value", 0, 1 ],
|
||||||
// ["$..*", "$..[*]"]
|
["$..*", "$..[*]"]
|
||||||
// );
|
);
|
||||||
//
|
|
||||||
// select(
|
select(
|
||||||
// ["string", 42, { "key": "value" }, [0, 1]],
|
["string", 42, { "key": "value" }, [0, 1]],
|
||||||
// ["value", 0, 1],
|
["value", 0, 1],
|
||||||
// ["$.*.*", "$[*].*", "$.*[*]", "$[*][*]"]
|
["$.*.*", "$[*].*", "$.*[*]", "$[*][*]"]
|
||||||
// );
|
);
|
||||||
//
|
|
||||||
// done();
|
done();
|
||||||
// });
|
});
|
||||||
});
|
});
|
Loading…
x
Reference in New Issue
Block a user