Skip to content

Commit

Permalink
test(data-workspace): use more explicit mocking
Browse files Browse the repository at this point in the history
  • Loading branch information
mediremi committed Jul 20, 2021
1 parent a849858 commit ce5fcd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/data-workspace/data-workspace.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ describe('<DataWorkspace>', () => {

it('if there is only one data set, select it automatically', () => {
const dataSet = mockDataSets[0]
useWorkflowContext.mockImplementation(() => ({
useWorkflowContext.mockImplementationOnce(() => ({
displayName: 'Workflow a',
id: 'i5m0JPw4DQi',
periodType: 'Monthly',
Expand All @@ -80,7 +80,7 @@ describe('<DataWorkspace>', () => {
})

it('if there are no data sets, selection should be empty', () => {
useWorkflowContext.mockImplementation(() => ({
useWorkflowContext.mockImplementationOnce(() => ({
displayName: 'Workflow a',
id: 'i5m0JPw4DQi',
periodType: 'Monthly',
Expand Down

0 comments on commit ce5fcd3

Please sign in to comment.