Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
islathehut committed May 6, 2024
1 parent 92c02ae commit 2518073
Showing 1 changed file with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ describe('channelsReplicatedSaga', () => {
)
.withReducer(reducer)
.withState(store.getState())
.put(
.putResolve(
publicChannelsActions.addChannel({
channel: sailingChannel,
})
Expand All @@ -108,12 +108,12 @@ describe('channelsReplicatedSaga', () => {
)
.withReducer(reducer)
.withState(store.getState())
.not.put(
.not.putResolve(
publicChannelsActions.addChannel({
channel: generalChannel,
})
)
.put(
.putResolve(
publicChannelsActions.addChannel({
channel: sailingChannel,
})
Expand All @@ -134,12 +134,12 @@ describe('channelsReplicatedSaga', () => {
)
.withReducer(reducer)
.withState(store.getState())
.put(
.putResolve(
publicChannelsActions.addChannel({
channel: sailingChannel,
})
)
.put(
.putResolve(
messagesActions.addPublicChannelsMessagesBase({
channelId: sailingChannel.id,
})
Expand All @@ -160,22 +160,22 @@ describe('channelsReplicatedSaga', () => {
)
.withReducer(reducer)
.withState(store.getState())
.put(
.putResolve(
publicChannelsActions.addChannel({
channel: sailingChannel,
})
)
.put(
.putResolve(
messagesActions.addPublicChannelsMessagesBase({
channelId: sailingChannel.id,
})
)
.not.put(
.not.putResolve(
publicChannelsActions.addChannel({
channel: generalChannel,
})
)
.not.put(
.not.putResolve(
messagesActions.addPublicChannelsMessagesBase({
channelId: generalChannel.id,
})
Expand Down Expand Up @@ -208,7 +208,7 @@ describe('channelsReplicatedSaga', () => {
)
.withReducer(reducer)
.withState(store.getState())
.put(messages.actions.resetCurrentPublicChannelCache())
.putResolve(messages.actions.resetCurrentPublicChannelCache())
.run()
})

Expand All @@ -230,7 +230,7 @@ describe('channelsReplicatedSaga', () => {
)
.withReducer(reducer)
.withState(store.getState())
.not.put(messages.actions.resetCurrentPublicChannelCache())
.not.putResolve(messages.actions.resetCurrentPublicChannelCache())
.run()
})

Expand All @@ -249,9 +249,9 @@ describe('channelsReplicatedSaga', () => {
)
.withReducer(reducer)
.withState(store.getState())
.put(publicChannelsActions.deleteChannel({ channelId: photoChannel.id }))
.putResolve(publicChannelsActions.deleteChannel({ channelId: photoChannel.id }))
.dispatch(publicChannelsActions.completeChannelDeletion({}))
.put(
.putResolve(
publicChannelsActions.addChannel({
channel: sailingChannel,
})
Expand All @@ -269,7 +269,7 @@ describe('channelsReplicatedSaga', () => {
)
.withReducer(reducer)
.withState(store.getState())
.not.put(publicChannelsActions.deleteChannel({ channelId: generalChannel.id }))
.not.putResolve(publicChannelsActions.deleteChannel({ channelId: generalChannel.id }))
.run()
})
})

0 comments on commit 2518073

Please sign in to comment.