Skip to content

Commit

Permalink
Merge pull request #225 from nono/couchdb-2-1-1
Browse files Browse the repository at this point in the history
fix: Fix tests for couchdb 2.1.1 🚑
  • Loading branch information
gregorylegarec authored Nov 14, 2017
2 parents 4658161 + 560e6b8 commit c8a0c12
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ cache:

before_script:
# start couchdb 2 (docker)
- docker run -d -p 5984:5984 --name couch klaemo/couchdb:2.0.0
- docker run -d -p 5984:5984 --name couch apache/couchdb:2.1
# go 1.8
- eval "$(gimme 1.8)"
- mkdir $GOPATH
Expand Down
5 changes: 4 additions & 1 deletion test/integration/mango.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ describe('mango API', function () {

it('Query indexOnGroupAndYear', async function () {
let results = await cozy.client.data.query(indexOnGroupAndYear, {
selector: {group: 'A'}
selector: {
group: 'A',
year: {$gt: 0}
}
})

results.should.be.an.Array()
Expand Down

0 comments on commit c8a0c12

Please sign in to comment.