Skip to content

Commit

Permalink
test(app): remove commented out tests (#6169)
Browse files Browse the repository at this point in the history
* test(app): remove commented out tests

remove commented out tests to get rid of linter warning

* add todos
  • Loading branch information
shlokamin authored Aug 4, 2020
1 parent 0e089a7 commit 1bdc118
Showing 1 changed file with 5 additions and 45 deletions.
50 changes: 5 additions & 45 deletions app/src/components/ModuleItem/__tests__/ModuleUpdate.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,51 +26,6 @@ describe('ModuleUpdate', () => {
jest.resetAllMocks()
})

// TODO(mc, 2020-03-16): these shallow snapshots don't test anything
// remove commented out tests when actual tests have been written
// it('component renders', () => {
// const treeAvailableCanControl = shallow(
// <Provider store={store}>
// <ModuleUpdate
// controlDisabledReason={null}
// moduleId="FAKEMODULE1234"
// hasAvailableUpdate={true}
// />
// </Provider>,
// )
// const treeAvailableNoControl = shallow(
// <Provider store={store}>
// <ModuleUpdate
// controlDisabledReason={"Can't touch this"}
// moduleId="FAKEMODULE1234"
// hasAvailableUpdate={true}
// />
// </Provider>
// )
// const treeNotAvailableCanControl = shallow(
// <Provider store={store}>
// <ModuleUpdate
// controlDisabledReason={null}
// moduleId="FAKEMODULE1234"
// hasAvailableUpdate={false}
// />
// </Provider>
// )
// const treeNotAvailableNoControl = shallow(
// <Provider store={store}>
// <ModuleUpdate
// controlDisabledReason={"Can't touch this"}
// moduleId="FAKEMODULE1234"
// hasAvailableUpdate={false}
// />
// </Provider>
// )
// expect(treeAvailableCanControl).toMatchSnapshot()
// expect(treeNotAvailableCanControl).toMatchSnapshot()
// expect(treeAvailableNoControl).toMatchSnapshot()
// expect(treeNotAvailableNoControl).toMatchSnapshot()
// })

it('displays a Warning for invalid files', () => {
const SPECS = [
{
Expand Down Expand Up @@ -110,4 +65,9 @@ describe('ModuleUpdate', () => {
}
)
})

it.todo('is available and can control')
it.todo('is available and cannot control')
it.todo('is not available and can control')
it.todo('is not available and cannot control')
})

0 comments on commit 1bdc118

Please sign in to comment.