Skip to content

Commit

Permalink
docs(test-runners): fix grammar errors (#830)
Browse files Browse the repository at this point in the history
fixed grammar errors
  • Loading branch information
bwanamaina authored Nov 23, 2023
1 parent 66294ff commit ad5066c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/guides/integration-examples/test-runners.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import * as mongoose from 'mongoose';
import { config } from './utils/config';

export = async function globalSetup() {
if (config.Memory) { // Config to decided if an mongodb-memory-server instance should be used
if (config.Memory) { // Config to decide if an mongodb-memory-server instance should be used
// it's needed in global space, because we don't want to create a new instance every test-suite
const instance = await MongoMemoryServer.create();
const uri = instance.getUri();
Expand All @@ -71,7 +71,7 @@ import { MongoMemoryServer } from 'mongodb-memory-server';
import { config } from './utils/config';

export = async function globalTeardown() {
if (config.Memory) { // Config to decided if an mongodb-memory-server instance should be used
if (config.Memory) { // Config to decide if an mongodb-memory-server instance should be used
const instance: MongoMemoryServer = (global as any).__MONGOINSTANCE;
await instance.stop();
}
Expand Down

0 comments on commit ad5066c

Please sign in to comment.