Skip to content

Commit

Permalink
Fix unit tests for UploadInfo.spec.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
JammingBen committed Oct 6, 2022
1 parent 87a98ef commit 8ea03f5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/web-runtime/tests/unit/components/UploadInfo.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,17 @@ const selectors = {
}
}

jest.mock('web-pkg/src/configuration', () => ({
configurationManager: {
options: { routing: { idBased: true } }
}
}))

describe('UploadInfo component', () => {
afterEach(() => {
jest.clearAllMocks()
})

it('should render the component in a hidden state per default', () => {
const { wrapper } = getShallowWrapper()
const overlay = wrapper.find(selectors.overlay)
Expand Down

0 comments on commit 8ea03f5

Please sign in to comment.