Skip to content

Commit b762ee6

Browse files
committed
test(builder): fix 'whereIn' test
1 parent 2235ed0 commit b762ee6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/builder.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ describe('Query builder', () => {
202202
'?filter[schedule][start]=2020-11-27,2020-11-28&filter[schedule][end]=2020-11-28,2020-11-29'
203203
)
204204

205-
post = Post.where({ status: ['ACTIVE', 'ARCHIVED'] }).when(true, (query) =>
206-
query.where({ user: { status: ['active', 'inactive'] } })
205+
post = Post.whereIn({ status: ['ACTIVE', 'ARCHIVED'] }).when(true, (query) =>
206+
query.whereIn({ user: { status: ['active', 'inactive'] } })
207207
)
208208

209209
expect(post._builder.filters).toEqual({

0 commit comments

Comments
 (0)