Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
rbennettcw committed Oct 22, 2024
1 parent afab6c2 commit c35aad1
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions libs/model/test/contest/contests-projection-lifecycle.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {
Actor,
DeepPartial,
EventNames,
InvalidState,
dispose,
handleEvent,
query,
Expand Down Expand Up @@ -400,34 +399,4 @@ describe('Contests projection lifecycle', () => {
},
] as Array<DeepPartial<z.infer<typeof ContestResults>>>);
});

test('should raise invalid state when community with namespace not found', async () => {
expect(
handleEvent(Contests(), {
name: EventNames.RecurringContestManagerDeployed,
payload: {
namespace: 'not-found',
contest_address: 'new-address',
interval: 10,
created_at,
},
}),
).to.eventually.be.rejectedWith(InvalidState);
});

test('should raise retryable error when protocol helper fails', async () => {
getTokenAttributes.rejects(new Error());
expect(
handleEvent(Contests(), {
name: EventNames.RecurringContestManagerDeployed,
payload: {
namespace: 'not-found',
contest_address: 'new-address',
interval: 10,
created_at,
},
}),
).to.eventually.be.rejectedWith(Error);
getTokenAttributes.reset();
});
});

0 comments on commit c35aad1

Please sign in to comment.