Commit 12c51b53 authored by Romain Courteaud's avatar Romain Courteaud

XXX wip: check full text parser

parent 9bb8ec08
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
* See COPYING file for full licensing terms. * See COPYING file for full licensing terms.
* See https://www.nexedi.com/licensing for rationale and options. * See https://www.nexedi.com/licensing for rationale and options.
*/ */
/*global jiodate*/ /*global jiodate, SimpleQuery*/
(function (jIO, jiodate) { (function (jIO, jiodate, SimpleQuery) {
"use strict"; "use strict";
var test = QUnit.test, var test = QUnit.test,
stop = QUnit.stop, stop = QUnit.stop,
...@@ -479,9 +479,13 @@ ...@@ -479,9 +479,13 @@
{"identifier": "a", "value": "test post", "time": "2016"}, {"identifier": "a", "value": "test post", "time": "2016"},
{"identifier": "b", "value": "test post 1", "time": "2017"}, {"identifier": "b", "value": "test post 1", "time": "2017"},
{"identifier": "c", "value": "test post 2016", "time": "2017"} {"identifier": "c", "value": "test post 2016", "time": "2017"}
]; ], lala;
stop(); stop();
expect(2); expect(3);
lala = jIO.QueryFactory.create('test post');
ok(lala instanceof SimpleQuery, lala);
/*global console */
console.log(lala);
jIO.QueryFactory.create('test post').exec(doc_list). jIO.QueryFactory.create('test post').exec(doc_list).
then(function (doc_list) { then(function (doc_list) {
deepEqual(doc_list, [ deepEqual(doc_list, [
...@@ -734,4 +738,4 @@ ...@@ -734,4 +738,4 @@
}).always(start); }).always(start);
}); });
}(jIO, jiodate)); }(jIO, jiodate, SimpleQuery));
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