Skip to content

Commit 2e7a92b

Browse files
committed
fix: an unit test error, adding stub getFileVersionSummaires
1 parent 903a8c6 commit 2e7a92b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/component/sections/file/File.spec.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,11 @@ describe('File', () => {
101101

102102
it('renders the FileVersions component', () => {
103103
const testFile = FileMother.createRealistic()
104+
const summaries = FileMother.createFileVersionSummary()
104105
fileRepository.getById = cy.stub().resolves(testFile)
106+
fileRepository.getFileVersionSummaries = cy
107+
.stub()
108+
.resolves({ summaries, totalCount: summaries.length })
105109

106110
cy.customMount(
107111
<File

0 commit comments

Comments
 (0)