diff --git a/test/fixtures/transformation/es6-arrow-functions/nested/actual.js b/test/fixtures/transformation/es6-arrow-functions/nested/actual.js index 44bc6bd411..9b5249db87 100644 --- a/test/fixtures/transformation/es6-arrow-functions/nested/actual.js +++ b/test/fixtures/transformation/es6-arrow-functions/nested/actual.js @@ -1,13 +1,13 @@ module.exports = { - init() { - return new Promise((resolve, reject) => { - MongoClient.connect(config.mongodb, (err, db) => { - if (err) { - return reject(err); - } - this.db = db; - resolve(this); + init: function () { + return new Promise((resolve, reject) => { + MongoClient.connect(config.mongodb, (err, db) => { + if (err) { + return reject(err); + } + this.db = db; + resolve(this); + }); }); - }); } };