Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Commit 1b29baa

Browse files
author
Hans Kristian Flaatten
committed
docs(examples): add tags $in query test
1 parent 6785b2b commit 1b29baa

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

examples/test.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,16 @@ describe('Example App', function() {
7575
})
7676
.end(done);
7777
});
78+
79+
it('returns palces with any of the following tags', function(done) {
80+
app.get(url + '?tags[]=Båt&tags[]=Stekeovn')
81+
.expect(200)
82+
.expect(function(res) {
83+
assert.equal(res.body.length, 3);
84+
assert.equal(res.body[0].name, 'Solrenningen');
85+
assert.equal(res.body[1].name, 'Åsedalen');
86+
assert.equal(res.body[2].name, 'Selhamar');
87+
})
88+
.end(done);
89+
});
7890
});

0 commit comments

Comments
 (0)