Fix deepQuery

This commit is contained in:
Typicode
2015-06-26 11:51:26 +02:00
parent 3a90daaf07
commit 6317c41d55
2 changed files with 10 additions and 2 deletions

View File

@ -107,6 +107,14 @@ describe('Server', function () {
.expect(200, done)
})
it('should respond with json and make a deep full-text search', function (done) {
request(server)
.get('/deep?q=1')
.expect('Content-Type', /json/)
.expect(db.deep)
.expect(200, done)
})
it('should return an empty array when nothing is matched', function (done) {
request(server)
.get('/tags?q=nope')