Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Romain Courteaud
jio
Commits
12c51b53
Commit
12c51b53
authored
Jan 11, 2018
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XXX wip: check full text parser
parent
9bb8ec08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
test/queries/tests.js
test/queries/tests.js
+9
-5
No files found.
test/queries/tests.js
View file @
12c51b53
...
@@ -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
));
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment