Commit a318d028 authored by Romain Courteaud's avatar Romain Courteaud

XXX wip: check full text parser

parent 2b719aed
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
* See https://www.nexedi.com/licensing for rationale and options. * See https://www.nexedi.com/licensing for rationale and options.
*/ */
/*jslint indent: 2, maxlen: 80, nomen: true */ /*jslint indent: 2, maxlen: 80, nomen: true */
/*global define, exports, require, module, jIO, window, test, ok, /*global define, exports, require, module, jIO, SimpleQuery, window, test, ok,
deepEqual, stop, start, expect */ deepEqual, ok, stop, start, expect */
// define([module_name], [dependencies], module); // define([module_name], [dependencies], module);
(function (dependencies, module) { (function (dependencies, module) {
...@@ -448,9 +448,13 @@ ...@@ -448,9 +448,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, [
......
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