Skip to content

Commit 7954b3f

Browse files
author
Aries Yuwono
committed
added test
1 parent 6c4df77 commit 7954b3f

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

test-complete/nodejs-documents-query.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,28 @@ describe('Document query test', function(){
370370
}, done);
371371
});
372372

373+
it('should do term query with lang options -- BUG 35245', function(done){
374+
db.documents.query(
375+
q.where(
376+
q.term('memex', q.termOptions('lang=de-DE-1901'))
377+
)).result(function(response) {
378+
response.length.should.equal(0);
379+
//console.log(JSON.stringify(response, null, 4));
380+
done();
381+
}, done);
382+
});
383+
384+
it('should do term query with lang options positive -- BUG 35245', function(done){
385+
db.documents.query(
386+
q.where(
387+
q.term('memex', q.termOptions('lang=en-EN'))
388+
)).result(function(response) {
389+
response.length.should.equal(2);
390+
//console.log(JSON.stringify(response, null, 4));
391+
done();
392+
}, done);
393+
});
394+
373395
it('should delete all documents', function(done){
374396
dbAdmin.documents.removeAll({
375397
all: true

0 commit comments

Comments
 (0)