@@ -211,9 +211,9 @@ module.exports = function(name, config, database, otherTests) {
211
211
it ( 'rolls back when rollback is called' , function ( ) {
212
212
return db . begin ( ) . then ( function ( ) {
213
213
var bob = person ( { name : 'bob' } ) ;
214
- return bob . save ( ) . then ( ( ) => {
214
+ return bob . save ( ) . then ( function ( ) {
215
215
return db . query ( 'select * from people' ) ;
216
- } ) . then ( people => {
216
+ } ) . then ( function ( people ) {
217
217
expect ( people ) . to . eql ( [
218
218
{
219
219
id : bob . id ,
@@ -222,11 +222,11 @@ module.exports = function(name, config, database, otherTests) {
222
222
photo : null
223
223
}
224
224
] ) ;
225
- } ) . then ( ( ) => {
225
+ } ) . then ( function ( ) {
226
226
return db . rollback ( ) ;
227
- } ) . then ( ( ) => {
227
+ } ) . then ( function ( ) {
228
228
return db . query ( 'select * from people' ) ;
229
- } ) . then ( people => {
229
+ } ) . then ( function ( people ) {
230
230
expect ( people ) . to . eql ( [
231
231
] ) ;
232
232
} ) ;
@@ -238,9 +238,9 @@ module.exports = function(name, config, database, otherTests) {
238
238
it ( 'rolls back if the transaction scope throws an exception' , function ( ) {
239
239
return expect ( db . transaction ( function ( ) {
240
240
var bob = person ( { name : 'bob' } ) ;
241
- return bob . save ( ) . then ( ( ) => {
241
+ return bob . save ( ) . then ( function ( ) {
242
242
return db . query ( 'select * from people' ) ;
243
- } ) . then ( people => {
243
+ } ) . then ( function ( people ) {
244
244
expect ( people ) . to . eql ( [
245
245
{
246
246
id : bob . id ,
@@ -252,9 +252,9 @@ module.exports = function(name, config, database, otherTests) {
252
252
253
253
throw new Error ( 'uh oh' ) ;
254
254
} ) ;
255
- } ) ) . to . be . rejectedWith ( 'uh oh' ) . then ( ( ) => {
255
+ } ) ) . to . be . rejectedWith ( 'uh oh' ) . then ( function ( ) {
256
256
return db . query ( 'select * from people' ) ;
257
- } ) . then ( people => {
257
+ } ) . then ( function ( people ) {
258
258
expect ( people ) . to . eql ( [
259
259
] ) ;
260
260
} ) ;
@@ -267,9 +267,9 @@ module.exports = function(name, config, database, otherTests) {
267
267
it ( 'makes changes after commit is called' , function ( ) {
268
268
return db . begin ( ) . then ( function ( ) {
269
269
var bob = person ( { name : 'bob' } ) ;
270
- return bob . save ( ) . then ( ( ) => {
270
+ return bob . save ( ) . then ( function ( ) {
271
271
return db . query ( 'select * from people' ) ;
272
- } ) . then ( people => {
272
+ } ) . then ( function ( people ) {
273
273
expect ( people ) . to . eql ( [
274
274
{
275
275
id : bob . id ,
@@ -278,11 +278,11 @@ module.exports = function(name, config, database, otherTests) {
278
278
photo : null
279
279
}
280
280
] ) ;
281
- } ) . then ( ( ) => {
281
+ } ) . then ( function ( ) {
282
282
return db . commit ( ) ;
283
- } ) . then ( ( ) => {
283
+ } ) . then ( function ( ) {
284
284
return db . query ( 'select * from people' ) ;
285
- } ) . then ( people => {
285
+ } ) . then ( function ( people ) {
286
286
expect ( people ) . to . eql ( [
287
287
{
288
288
id : bob . id ,
@@ -302,9 +302,9 @@ module.exports = function(name, config, database, otherTests) {
302
302
303
303
return db . transaction ( function ( ) {
304
304
bob = person ( { name : 'bob' } ) ;
305
- return bob . save ( ) . then ( ( ) => {
305
+ return bob . save ( ) . then ( function ( ) {
306
306
return db . query ( 'select * from people' ) ;
307
- } ) . then ( people => {
307
+ } ) . then ( function ( people ) {
308
308
expect ( people ) . to . eql ( [
309
309
{
310
310
id : bob . id ,
@@ -314,9 +314,9 @@ module.exports = function(name, config, database, otherTests) {
314
314
}
315
315
] ) ;
316
316
} ) ;
317
- } ) . then ( ( ) => {
317
+ } ) . then ( function ( ) {
318
318
return db . query ( 'select * from people' ) ;
319
- } ) . then ( people => {
319
+ } ) . then ( function ( people ) {
320
320
expect ( people ) . to . eql ( [
321
321
{
322
322
id : bob . id ,
0 commit comments