Skip to content

Commit

Permalink
fix(core): update tests imports - tasks and scheduled publishing prov…
Browse files Browse the repository at this point in the history
…iders
  • Loading branch information
pedrobonamin committed Oct 22, 2024
1 parent dba6a31 commit ed39607
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ describe('TasksEnabledProvider', () => {
})

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({tasks: {enabled: true}})
useWorkspaceMock.mockReturnValue({tasks: {enabled: true}})

const value = renderHook(useTasksEnabled, {wrapper: TasksEnabledProvider})

Expand Down

0 comments on commit ed39607

Please sign in to comment.