changed field from availability to isAvailable

This commit is contained in:
jackiettran
2025-11-24 17:36:18 -05:00
parent bb16d659bd
commit 42a5412582
10 changed files with 19 additions and 19 deletions

View File

@@ -422,8 +422,8 @@ describe('Items Routes', () => {
describe('GET /recommendations', () => {
const mockRecommendations = [
{ id: 1, name: 'Item 1', availability: true },
{ id: 2, name: 'Item 2', availability: true }
{ id: 1, name: 'Item 1', isAvailable: true },
{ id: 2, name: 'Item 2', isAvailable: true }
];
it('should get recommendations for authenticated user', async () => {
@@ -443,7 +443,7 @@ describe('Items Routes', () => {
});
expect(mockItemFindAll).toHaveBeenCalledWith({
where: { availability: true },
where: { isAvailable: true, isDeleted: false },
limit: 10,
order: [['createdAt', 'DESC']]
});