Skip to content

Commit

Permalink
fix(core): update schedulePublishingEnabledProvider tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobonamin committed Oct 22, 2024
1 parent dba6a31 commit 321ddc2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ describe('ScheduledPublishingEnabledProvider', () => {
})

it('should not show the plugin if useFeatureEnabled has an error', () => {
require('../../../hooks').useFeatureEnabled.mockReturnValue({
useFeatureEnabledMock.mockReturnValue({
enabled: false,
isLoading: true,
error: new Error('Something went wrong'),
})
require('../../../studio').useWorkspace.mockReturnValue({scheduledPublishing: {enabled: true}})
useWorkspaceMock.mockReturnValue({scheduledPublishing: {enabled: true}})

const value = renderHook(useScheduledPublishingEnabled, {
wrapper: ScheduledPublishingEnabledProvider,
Expand Down

0 comments on commit 321ddc2

Please sign in to comment.