Skip to content

Commit 4b83887

Browse files
committed
add stubs to dataverseInfoRepository in component tests
1 parent 26ded31 commit 4b83887

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tests/component/sections/dataset/dataset-files/files-table/FilesTable.spec.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,8 @@ describe('FilesTable', () => {
207207
dataverseInfoRepository.getHasPublicStore = cy.stub().resolves({})
208208
dataverseInfoRepository.getExternalStatusesAllowed = cy.stub().resolves({})
209209
dataverseInfoRepository.getMaxEmbargoDurationInMonths = cy.stub().resolves({})
210+
dataverseInfoRepository.getPublishDatasetDisclaimerText = cy.stub().resolves({})
211+
dataverseInfoRepository.getDatasetPublishPopupCustomText = cy.stub().resolves({})
210212

211213
cy.customMount(
212214
<SettingsProvider dataverseInfoRepository={dataverseInfoRepository}>

tests/component/sections/dataset/dataset-files/files-table/zip-download-limit-message/ZipDownloadLimitMessage.spec.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ describe('ZipDownloadLimitMessage', () => {
2828
dataverseInfoRepository.getHasPublicStore = cy.stub().resolves({})
2929
dataverseInfoRepository.getExternalStatusesAllowed = cy.stub().resolves({})
3030
dataverseInfoRepository.getMaxEmbargoDurationInMonths = cy.stub().resolves({})
31+
dataverseInfoRepository.getPublishDatasetDisclaimerText = cy.stub().resolves({})
32+
dataverseInfoRepository.getDatasetPublishPopupCustomText = cy.stub().resolves({})
3133
})
3234

3335
it('should not render if there is less than 1 file selected', () => {

0 commit comments

Comments
 (0)