fix: added missing return for star/unstar service method
This commit is contained in:
@@ -271,13 +271,6 @@ describe('UserHistoryService', () => {
|
||||
test('Should resolve left and error out due to invalid request ID', async () => {
|
||||
mockPrisma.userHistory.findFirst.mockResolvedValueOnce(null);
|
||||
|
||||
return expect(
|
||||
await userHistoryService.starUnstarRequestInHistory('abc', '1'),
|
||||
).toEqualLeft(USER_HISTORY_NOT_FOUND);
|
||||
});
|
||||
test('Should resolve left and error out due to invalid request ID', async () => {
|
||||
mockPrisma.userHistory.findFirst.mockResolvedValueOnce(null);
|
||||
|
||||
return expect(
|
||||
await userHistoryService.starUnstarRequestInHistory('abc', '1'),
|
||||
).toEqualLeft(USER_HISTORY_NOT_FOUND);
|
||||
|
||||
Reference in New Issue
Block a user