This repository was archived by the owner on Mar 4, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ describe('database page', () => {
170
170
// Simple sanity check of the downloaded file
171
171
// TODO - Implement a better check. Maybe create a task that diffs the database to the original test data file?
172
172
const db = path . join ( downloadsFolder , 'Assembly Election 2017.sqlite' )
173
- cy . readFile ( db , { timeout : 5000 } ) . should ( 'have.length.gt ' , 512 )
173
+ cy . readFile ( db , 'binary' , { timeout : 5000 } ) . should ( 'have.length' , 57344 )
174
174
cy . task ( 'rmFile' , { path : db } )
175
175
} )
176
176
@@ -201,7 +201,7 @@ describe('database page', () => {
201
201
// Simple sanity check of the downloaded file
202
202
// TODO - Implement a better check. Maybe keep the "correct" csv in the repo as test data too, and compare against it?
203
203
const csv = path . join ( downloadsFolder , 'Candidate_Information.csv' )
204
- cy . readFile ( csv , { timeout : 5000 } ) . should ( 'have.length.gt ' , 512 )
204
+ cy . readFile ( csv , 'binary' , { timeout : 5000 } ) . should ( 'have.length' , 30773 )
205
205
cy . task ( 'rmFile' , { path : csv } )
206
206
} )
207
207
You can’t perform that action at this time.
0 commit comments