@@ -1160,12 +1160,12 @@ describe('Executing method query', () => {
11601160describe ( 'Transactions' , ( ) => {
11611161
11621162 // NOTE: The same test for 100,000 inserts works also the same.
1163- // Inserting just 10,000 records to avoid exceeding memory quota on the test server.
1163+ // Inserting just 10,000 records to avoid exceeding the memory quota on the test server.
11641164 // Also, the client shouldn't execute more than 10,000 queries within a single transaction,
11651165 // huge transactions should be throttled into smaller chunks.
11661166 describe ( 'A complex transaction with 10,000 inserts' , ( ) => {
11671167
1168- let result , error , context , THIS , tag ;
1168+ let result , context , THIS , tag ;
11691169 beforeEach ( done => {
11701170 dbSpec . tx ( 'complex' , function ( t ) {
11711171 tag = t . ctx . tag ;
@@ -1186,12 +1186,11 @@ describe('Transactions', () => {
11861186
11871187 it ( 'must not fail' , ( ) => {
11881188 expect ( THIS === context ) . toBe ( true ) ;
1189- expect ( error ) . toBeUndefined ( ) ;
11901189 expect ( Array . isArray ( result ) ) . toBe ( true ) ;
11911190 expect ( result . length ) . toBe ( 10003 ) ; // drop + create + insert x 10000 + select;
11921191 const last = result [ result . length - 1 ] ; // result from the select;
11931192 expect ( typeof last ) . toBe ( 'object' ) ;
1194- expect ( last . count ) . toBe ( '10000' ) ; // last one must be the counter (as text);
1193+ expect ( last . count ) . toBe ( '10000' ) ; // the last one must be the counter (as text);
11951194 expect ( tag ) . toBe ( 'complex' ) ;
11961195 } ) ;
11971196 } ) ;
@@ -1232,7 +1231,7 @@ describe('Transactions', () => {
12321231 return t ;
12331232 } )
12341233 . then ( obj => {
1235- // cannot use transaction context outside of transaction callback:
1234+ // cannot use transaction context outside of the transaction callback:
12361235 return obj . query ( 'select 123' ) ;
12371236 } )
12381237 . catch ( err => {
0 commit comments