Commit 39cfa82e authored by Romain Courteaud's avatar Romain Courteaud

XXX wip: check full text parser

parent a333cf38
/*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) {
...@@ -413,9 +413,13 @@ ...@@ -413,9 +413,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