Skip to content

Commit 7cab1ae

Browse files
committed
fix small typo
1 parent 46f1fcf commit 7cab1ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/modules/mongodb/src/mongodb-container.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class MongoDBContainer extends GenericContainer {
3131

3232
public override async start(): Promise<StartedMongoDBContainer> {
3333
if (this.authEnabled()) {
34-
this.ensureReplicaSetIsDisabedWhenCredentialsAreSet();
34+
this.ensureReplicaSetIsDisabledWhenCredentialsAreSet();
3535
this.withEnvironment({
3636
MONGO_INITDB_ROOT_USERNAME: this.username,
3737
MONGO_INITDB_ROOT_PASSWORD: this.password,
@@ -90,7 +90,7 @@ export class MongoDBContainer extends GenericContainer {
9090
return this.username && this.password;
9191
}
9292

93-
private ensureReplicaSetIsDisabedWhenCredentialsAreSet() {
93+
private ensureReplicaSetIsDisabledWhenCredentialsAreSet() {
9494
if (this.authEnabled() && this.useReplicaSet)
9595
throw new Error(
9696
"Using credentials is not supported when replica set is enabled. Either connect without credentials or disable replica set."

0 commit comments

Comments
 (0)