Skip to content

Commit

Permalink
🤖 Apply formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 6, 2025
1 parent 886864b commit f12318b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/frontend/src/tests/lib/canisters/reward.canister.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,15 @@ describe('reward.canister', () => {
expect(claimResponse).toEqual(mockedClaimResponse);
});

it('should throw an error if claim_vip_reward throws', async () => {
service.claim_vip_reward.mockImplementation(async () => {
await Promise.resolve();
throw mockResponseError;
});
it('should throw an error if claim_vip_reward throws', async () => {
service.claim_vip_reward.mockImplementation(async () => {
await Promise.resolve();
throw mockResponseError;
});

const { claimVipReward } = await createRewardCanister({
serviceOverride: service
});
const { claimVipReward } = await createRewardCanister({
serviceOverride: service
});

const result = claimVipReward({ code: '1234567890' });
await expect(result).rejects.toThrow(mockResponseError);
Expand Down

0 comments on commit f12318b

Please sign in to comment.