Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyanziano committed Nov 11, 2021
1 parent e20ecc5 commit 1e00d35
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ describe('replyToActivity route middleware', () => {
});
expect(mockRes.send).toHaveBeenCalledWith(OK, { id: 'someActivityId' });
expect(mockRes.end).toHaveBeenCalled();
expect(mockNext).toHaveBeenCalled();
});

it('should resolve any OAuth cards, post the activity (with a null id) to the user, and send an OK response', async () => {
Expand All @@ -123,7 +122,6 @@ describe('replyToActivity route middleware', () => {
});
expect(mockRes.send).toHaveBeenCalledWith(OK, { id: null });
expect(mockRes.end).toHaveBeenCalled();
expect(mockNext).toHaveBeenCalled();

mockReq.body.id = 'someActivityId';
});
Expand All @@ -147,6 +145,5 @@ describe('replyToActivity route middleware', () => {
});
expect(mockRes.send).toHaveBeenCalledWith(OK, { id: 'someActivityId' });
expect(mockRes.end).toHaveBeenCalled();
expect(mockNext).toHaveBeenCalled();
});
});

0 comments on commit 1e00d35

Please sign in to comment.