File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
report-viewer/report-viewer/tests/unit/stores Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -61,11 +61,7 @@ describe('Test Report File Handling', () => {
61
61
it ( 'Test comparison' , ( ) => {
62
62
reportStore ( ) . loadReport ( mockFiles , submissionFiles , 'test' )
63
63
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' )
69
65
70
66
expect ( comparison ) . toBeDefined ( )
71
67
expect ( comparison . firstSubmissionId ) . toEqual ( 'test1' )
@@ -77,6 +73,8 @@ describe('Test Report File Handling', () => {
77
73
expect ( comparison . filesOfFirstSubmission . length ) . toBeGreaterThan ( 0 )
78
74
expect ( comparison . filesOfSecondSubmission . length ) . toBeGreaterThan ( 0 )
79
75
76
+ const filesOfFirstSubmission = comparison . filesOfFirstSubmission
77
+ const filesOfSecondSubmission = comparison . filesOfSecondSubmission
80
78
expect ( filesOfFirstSubmission . length ) . toEqual ( 2 )
81
79
expect ( filesOfSecondSubmission . length ) . toEqual ( 2 )
82
80
You can’t perform that action at this time.
0 commit comments