Skip to content

Commit

Permalink
test: remove skipped tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ismay authored and ismay committed May 30, 2023
1 parent dc927cb commit 613d417
Showing 1 changed file with 0 additions and 47 deletions.
47 changes: 0 additions & 47 deletions src/components/FormFields/AggregatedDataExchangeField.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,51 +125,4 @@ describe('<AggregatedDataExchangeField>', () => {
expect(submitHandler).not.toHaveBeenCalled()
})
})

describe('When response has data', () => {
const data = {
dataExchangeIds: {
aggregateDataExchanges: [
{
displayName: 'Internal data exchange',
id: 'qwnWfFq0nk4',
},
{
displayName: 'Internal data exchange 2',
id: 'ZKNvLwv9ffm',
},
],
},
}

// At the time of writing these tests have a problem relating to the error
// ReferenceError: backgroundColor is not defined
// seems to be a problem in `node_modules/@dhis2-ui/transfer/build/cjs/right-side.js`
it.skip('should display Transfer and allow submission of ids', () => {
const wrapper = renderComponent({
useDataQueryReturnValues: {
loading: false,
error: undefined,
data,
},
})

console.log(wrapper.debug())
})

// At the time of writing these tests have a problem relating to the error
// ReferenceError: backgroundColor is not defined
// seems to be a problem in `node_modules/@dhis2-ui/transfer/build/cjs/right-side.js`
it.skip('should prevent submission if no ids are selected', () => {
const wrapper = renderComponent({
useDataQueryReturnValues: {
loading: false,
error: undefined,
data,
},
})

console.log(wrapper.debug())
})
})
})

1 comment on commit 613d417

@dhis2-bot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.