Skip to content

Commit 392c45f

Browse files
committed
fix comparison factory format
1 parent f5d50c6 commit 392c45f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

report-viewer/report-viewer/tests/unit/stores/reportHandling.test.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,7 @@ describe('Test Report File Handling', () => {
6161
it('Test comparison', () => {
6262
reportStore().loadReport(mockFiles, submissionFiles, 'test')
6363

64-
const comparisonResult = reportStore().getComparison('test1', 'test2')
65-
expect(comparisonResult).toBeDefined()
66-
const comparison = comparisonResult.comparison
67-
const filesOfFirstSubmission = comparisonResult.filesOfFirstSubmission
68-
const filesOfSecondSubmission = comparisonResult.filesOfSecondSubmission
64+
const comparison = reportStore().getComparison('test1', 'test2')
6965

7066
expect(comparison).toBeDefined()
7167
expect(comparison.firstSubmissionId).toEqual('test1')
@@ -77,6 +73,8 @@ describe('Test Report File Handling', () => {
7773
expect(comparison.filesOfFirstSubmission.length).toBeGreaterThan(0)
7874
expect(comparison.filesOfSecondSubmission.length).toBeGreaterThan(0)
7975

76+
const filesOfFirstSubmission = comparison.filesOfFirstSubmission
77+
const filesOfSecondSubmission = comparison.filesOfSecondSubmission
8078
expect(filesOfFirstSubmission.length).toEqual(2)
8179
expect(filesOfSecondSubmission.length).toEqual(2)
8280

0 commit comments

Comments
 (0)