Skip to content

Commit 1a9662d

Browse files
committed
node pre 4.x replace arrow functions in tests with non-arrow
1 parent 80de6be commit 1a9662d

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

test/common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports.SqlString = require('sqlstring');
1111
module.exports.config = config;
1212

1313
module.exports.waitDatabaseReady = function(callback) {
14-
const tryConnect = () => {
14+
const tryConnect = function() {
1515
const conn = module.exports.createConnection();
1616
conn.on('error', function(err) {
1717
console.log(err);

test/run.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,14 @@ process.env.TZ = 'UTC';
1313

1414
require('urun')(__dirname, options);
1515

16-
17-
process.on('exit', (code) => {
18-
console.log(`About to exit with code: ${code}`);
16+
process.on('exit', function(code) {
17+
console.log('About to exit with code: ' + code);
1918
});
2019

21-
process.on('unhandledRejection', (reason) => {
20+
process.on('unhandledRejection', function(reason) {
2221
console.log('unhandledRejection', reason);
2322
});
2423

25-
process.on('uncaughtException', (err) => {
24+
process.on('uncaughtException', function(err) {
2625
console.log('uncaughtException', err);
2726
});

0 commit comments

Comments
 (0)