Skip to content

Commit

Permalink
Using Jest with MongoDB example - wrong variables (#6472)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikpundik authored and SimenB committed Jun 15, 2018
1 parent 949a281 commit 794e86a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/MongoDB.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ module.exports = async function() {
};

// Write global config to disk because all tests run in different contexts.
fs.writeFileSync(mongoFileConfigPath, JSON.stringify(mongoConfig));
fs.writeFileSync(globalConfigPath, JSON.stringify(mongoConfig));

// Set reference to mongod in order to close the server during teardown.
global.__MONGOD__ = mongod;
global.__MONGOD__ = mongoServer;
};
```

Expand Down

0 comments on commit 794e86a

Please sign in to comment.