Skip to content

Commit

Permalink
refactor(MongoMemoryServer): change "getInstanceInfo" to return undef…
Browse files Browse the repository at this point in the history
…ined

BREAKING CHANGE:
change "MongoMemoryServer.getInstanceInfo" to return "undefined" instead of "false"
  • Loading branch information
hasezoey committed Oct 7, 2020
1 parent 5b53f03 commit 27349a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/mongodb-memory-server-core/src/MongoMemoryServer.ts
Expand Up @@ -205,10 +205,10 @@ export class MongoMemoryServer {
}

/**
* Get Information about the currently running instance, if it is not running it returns "false"
* Get Information about the currently running instance, if it is not running it returns "undefined"
*/
getInstanceInfo(): MongoInstanceDataT | false {
return this.instanceInfoSync ?? false;
getInstanceInfo(): MongoInstanceDataT | undefined {
return this.instanceInfoSync;
}

/**
Expand Down

0 comments on commit 27349a3

Please sign in to comment.