File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -247,11 +247,11 @@ describe('Statement#iterate()', function () {
247
247
) . to . throw ( TypeError ) ;
248
248
} ) ;
249
249
it ( "should read and write non-trivial numbers of rows" , function ( ) {
250
- const insertRuntime = 1000
250
+ const insertRuntime = 1000 ;
251
251
this . timeout ( insertRuntime * 2.5 ) ;
252
- const runUntil = Date . now ( ) + insertRuntime
252
+ const runUntil = Date . now ( ) + insertRuntime ;
253
253
let i = 0 ;
254
- const r = .141592654
254
+ const r = .141592654 ;
255
255
this . db . prepare ( 'CREATE TABLE t (id INTEGER, b TEXT, c REAL)' ) . run ( ) ;
256
256
const stmt = this . db . prepare ( "INSERT INTO t VALUES (?, ?, ?)" ) ;
257
257
while ( Date . now ( ) < runUntil ) {
@@ -268,13 +268,13 @@ describe('Statement#iterate()', function () {
268
268
expect ( i ) . to . be . gte ( 1000 ) ; // < expect ~50K and 200K on reasonable machines
269
269
const stmt1 = this . db . prepare ( "SELECT * FROM t ORDER BY id DESC" ) ;
270
270
for ( const data of stmt1 . iterate ( ) ) {
271
- i --
271
+ i -- ;
272
272
expect ( data ) . to . deep . equal ( {
273
273
id : i ,
274
274
b : String ( i ) ,
275
275
c : i + r
276
- } )
276
+ } ) ;
277
277
}
278
- expect ( i ) . to . equal ( 0 )
278
+ expect ( i ) . to . equal ( 0 ) ;
279
279
} ) ;
280
280
} ) ;
You can’t perform that action at this time.
0 commit comments