Compare commits

...

2 Commits

Author SHA1 Message Date
Gitea Actions
ac0115af2b ci: Bump version to 0.7.19 [skip ci] 2026-01-02 00:55:57 +05:00
f24b15f19b integration test fixes
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 14m22s
2026-01-01 11:55:26 -08:00
4 changed files with 5 additions and 15 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "flyer-crawler",
"version": "0.7.18",
"version": "0.7.19",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "flyer-crawler",
"version": "0.7.18",
"version": "0.7.19",
"dependencies": {
"@bull-board/api": "^6.14.2",
"@bull-board/express": "^6.14.2",

View File

@@ -1,7 +1,7 @@
{
"name": "flyer-crawler",
"private": true,
"version": "0.7.18",
"version": "0.7.19",
"type": "module",
"scripts": {
"dev": "concurrently \"npm:start:dev\" \"vite\"",

View File

@@ -710,14 +710,4 @@ describe('Flyer DB Service', () => {
);
});
});
describe('deleteFlyer - Ownership Check', () => {
it('should not delete flyer if the user does not own it', async () => {
mockPoolInstance.query.mockResolvedValue({ rowCount: 0 });
await expect(flyerRepo.deleteFlyer(1, mockLogger)).rejects.toThrow(
'Flyer with ID 1 not found.',
);
});
});
});

View File

@@ -348,7 +348,7 @@ describe('Shopping DB Service', () => {
it('should throw an error if no rows are deleted (item not found)', async () => {
mockPoolInstance.query.mockResolvedValue({ rowCount: 0, rows: [], command: 'DELETE' });
await expect(shoppingRepo.removeShoppingListItem(999, 'user-1', mockLogger)).rejects.toThrow(
'Shopping list item not found.',
'Shopping list item not found or user does not have permission.',
);
});
@@ -369,7 +369,7 @@ describe('Shopping DB Service', () => {
mockPoolInstance.query.mockResolvedValue({ rowCount: 0 });
await expect(shoppingRepo.removeShoppingListItem(1, 'wrong-user', mockLogger)).rejects.toThrow(
'Shopping list item not found.',
'Shopping list item not found or user does not have permission.',
);
});
});