Commit 16bedbd9 authored by Vincent Bechu's avatar Vincent Bechu

[querystorage] Adapt test sub_storage handle all capacity

parent bbf280f1
...@@ -400,7 +400,8 @@ ...@@ -400,7 +400,8 @@
(capacity === "sort") || (capacity === "sort") ||
(capacity === "select") || (capacity === "select") ||
(capacity === "limit") || (capacity === "limit") ||
(capacity === "query")) { (capacity === "query") ||
(capacity === "schema")) {
return true; return true;
} }
throw new Error("Unexpected " + capacity + " capacity check"); throw new Error("Unexpected " + capacity + " capacity check");
...@@ -410,7 +411,8 @@ ...@@ -410,7 +411,8 @@
sort_on: [["title", "ascending"]], sort_on: [["title", "ascending"]],
limit: [5], limit: [5],
select_list: ["title", "id"], select_list: ["title", "id"],
query: 'title: "two"' query: 'title: "two"',
schema: {'title': 'string'}
}, },
"buildQuery called"); "buildQuery called");
return "taboulet"; return "taboulet";
...@@ -429,7 +431,8 @@ ...@@ -429,7 +431,8 @@
sort_on: [["title", "ascending"]], sort_on: [["title", "ascending"]],
limit: [5], limit: [5],
select_list: ["title", "id"], select_list: ["title", "id"],
query: 'title: "two"' query: 'title: "two"',
schema: {'title': 'string'}
}) })
.then(function (result) { .then(function (result) {
deepEqual(result, { deepEqual(result, {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment