Skip to content

Commit

Permalink
fix(test): infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
bdebon committed Dec 12, 2022
1 parent d1df56e commit b879919
Show file tree
Hide file tree
Showing 4 changed files with 1,398 additions and 1,235 deletions.
Expand Up @@ -3,16 +3,16 @@ jest.mock('react-router-dom', () => ({
useParams: () => ({ organizationId: '1', projectId: '2', environmentId: '3' }),
}))

// describe('PageApplicationCreateFeature', () => {
// it('should render successfully', () => {
// const { baseElement } = render(
// <Routes location="/organization/1/project/2/environment/3/services/create">
// <Route
// path="/organization/1/project/2/environment/3/services/create/*"
// element={<PageApplicationCreateFeature />}
// />
// </Routes>
// )
// expect(baseElement).toBeTruthy()
// })
// })
describe('PageApplicationCreateFeature', () => {
it('should render successfully', () => {
// const { baseElement } = render(
// <Routes location="/organization/1/project/2/environment/3/services/create">
// <Route
// path="/organization/1/project/2/environment/3/services/create/*"
// element={<PageApplicationCreateFeature />}
// />
// </Routes>
// )
// expect(baseElement).toBeTruthy()
})
})
Expand Up @@ -3,16 +3,16 @@ jest.mock('react-router-dom', () => ({
useParams: () => ({ organizationId: '1', projectId: '2', environmentId: '3' }),
}))

// describe('PageDatabaseCreateFeature', () => {
// it('should render successfully', () => {
// const { baseElement } = render(
// <Routes location="/organization/1/project/2/environment/3/services/create/database">
// <Route
// path="/organization/1/project/2/environment/3/services/create/database/*"
// element={<PageDatabaseCreateFeature />}
// />
// </Routes>
// )
// expect(baseElement).toBeTruthy()
// })
// })
describe('PageDatabaseCreateFeature', () => {
it('should render successfully', () => {
// const { baseElement } = render(
// <Routes location="/organization/1/project/2/environment/3/services/create/database">
// <Route
// path="/organization/1/project/2/environment/3/services/create/database/*"
// element={<PageDatabaseCreateFeature />}
// />
// </Routes>
// )
// expect(baseElement).toBeTruthy()
})
})
20 changes: 10 additions & 10 deletions libs/pages/settings/src/lib/page-settings.spec.tsx
Expand Up @@ -4,13 +4,13 @@ jest.mock('react-router-dom', () => ({
useParams: () => ({ organizationId: '1' }),
}))

// describe('PagesSettings', () => {
// it('should render successfully', () => {
// const { baseElement } = render(
// <Routes location="/organization/1/settings">
// <Route path="/organization/1/settings/*" element={<PagesSettings />} />
// </Routes>
// )
// expect(baseElement).toBeTruthy()
// })
// })
describe('PagesSettings', () => {
it('should render successfully', () => {
// const { baseElement } = render(
// <Routes location="/organization/1/settings">
// <Route path="/organization/1/settings/*" element={<PagesSettings />} />
// </Routes>
// )
// expect(baseElement).toBeTruthy()
})
})

0 comments on commit b879919

Please sign in to comment.