Skip to content

Commit

Permalink
feat(repeater): fix build
Browse files Browse the repository at this point in the history
closes #196
  • Loading branch information
ostridm committed Jun 10, 2024
1 parent 504ebfe commit 956b065
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/repeater/src/bus/DefaultRepeaterBus.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ describe('DefaultRepeaterBus', () => {
}
);

when(mockedRepeaterServer.deploy()).thenResolve({ repeaterId: RepeaterId });
when(mockedRepeaterServer.deploy(anything())).thenResolve({
repeaterId: RepeaterId
});

sut = new DefaultRepeaterBus(
instance(mockedLogger),
Expand All @@ -68,7 +70,9 @@ describe('DefaultRepeaterBus', () => {

// assert
verify(mockedRepeaterServer.connect()).once();
verify(mockedRepeaterServer.deploy()).once();
verify(
mockedRepeaterServer.deploy(objectContaining({ repeaterId: undefined }))
).once();
});

it('should allow connect more than once', async () => {
Expand All @@ -95,7 +99,9 @@ describe('DefaultRepeaterBus', () => {

it('should throw when underlying deploy throws', async () => {
// arrange
when(mockedRepeaterServer.deploy()).thenReject(new Error('foo'));
when(mockedRepeaterServer.deploy(anything())).thenReject(
new Error('foo')
);

// act
const act = () => sut.connect();
Expand Down

0 comments on commit 956b065

Please sign in to comment.