Skip to content

Commit fd208d2

Browse files
committed
Fix filter syntax
1 parent 87754dd commit fd208d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/find.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ describe('loopback json api component find methods', function () {
234234

235235
it('should filter only one', function (done) {
236236
request(app)
237-
.get('/posts?filter[title]=deer+can+jump')
237+
.get('/posts?filter[where][title]=deer+can+jump')
238238
.expect(200)
239239
.end(function (err, res) {
240240
expect(err).to.equal(null);
@@ -245,7 +245,7 @@ describe('loopback json api component find methods', function () {
245245

246246
it('should filter two', function (done) {
247247
request(app)
248-
.get('/posts?filter[title][like]=myth')
248+
.get('/posts?filter[where][content][like]=myth')
249249
.expect(200)
250250
.end(function (err, res) {
251251
expect(err).to.equal(null);

0 commit comments

Comments
 (0)