Skip to content

Commit 704bc64

Browse files
committed
style(MongoInstance): change a arrow function to a named function for debugging
1 parent a634bb7 commit 704bc64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/mongodb-memory-server-core/src/util/MongoInstance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ export class MongoInstance extends EventEmitter implements ManagerBase {
334334
const launch: Promise<void> = new Promise((res, rej) => {
335335
this.once(MongoInstanceEvents.instanceReady, res);
336336
this.once(MongoInstanceEvents.instanceError, rej);
337-
this.once(MongoInstanceEvents.instanceClosed, () => {
337+
this.once(MongoInstanceEvents.instanceClosed, function launchInstanceClosed() {
338338
rej(new Error('Instance Exited before being ready and without throwing an error!'));
339339
});
340340
});

0 commit comments

Comments
 (0)