updated tests
This commit is contained in:
@@ -8,7 +8,8 @@ jest.mock('sequelize', () => ({
|
||||
lte: 'lte',
|
||||
iLike: 'iLike',
|
||||
or: 'or',
|
||||
not: 'not'
|
||||
not: 'not',
|
||||
ne: 'ne'
|
||||
}
|
||||
}));
|
||||
|
||||
@@ -199,7 +200,9 @@ describe('Items Routes', () => {
|
||||
{
|
||||
model: mockUserModel,
|
||||
as: 'owner',
|
||||
attributes: ['id', 'firstName', 'lastName', 'imageFilename']
|
||||
attributes: ['id', 'firstName', 'lastName', 'imageFilename'],
|
||||
where: { isBanned: { 'ne': true } },
|
||||
required: true
|
||||
}
|
||||
],
|
||||
limit: 20,
|
||||
|
||||
Reference in New Issue
Block a user