Skip to content

Commit

Permalink
feat(MongoMemoryReplSet): add getter "state"
Browse files Browse the repository at this point in the history
  • Loading branch information
hasezoey committed Oct 12, 2020
1 parent 415fc8f commit 65135a8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/mongodb-memory-server-core/src/MongoMemoryReplSet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,13 @@ export class MongoMemoryReplSet extends EventEmitter {
return replSet;
}

/**
* Get Current state of this class
*/
get state(): MongoMemoryReplSetStateEnum {
return this._state;
}

/**
* Returns database name.
*/
Expand Down

0 comments on commit 65135a8

Please sign in to comment.