refactor: http service (#2233)

This commit is contained in:
Mo
2023-02-28 20:43:25 -06:00
committed by GitHub
parent 6e7618b258
commit e7f1d35341
142 changed files with 1116 additions and 1307 deletions

View File

@@ -100,7 +100,9 @@ describe('IntegrityService', () => {
it('should not publish mismatches if checking integrity fails', async () => {
integrityApi.checkIntegrity = jest.fn().mockReturnValue({
error: 'Ooops',
data: {
error: 'Ooops',
},
})
await createService().handleEvent({
@@ -121,7 +123,9 @@ describe('IntegrityService', () => {
},
})
itemApi.getSingleItem = jest.fn().mockReturnValue({
error: 'Ooops',
data: {
error: 'Ooops',
},
})
await createService().handleEvent({