Skip to content
Browse files

Update mongodb-memory-server import in recipe

  • Loading branch information
MoppetX authored and novemberborn committed Nov 23, 2019
1 parent 641c52f commit 6b5a71356a2839c8b39ee89763527589957ef44e
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/recipes/
@@ -40,7 +40,7 @@ First, include the libraries you need:
// Libraries required for testing
import test from 'ava'
import request from 'supertest'
import MongodbMemoryServer from 'mongodb-memory-server'
import {MongoMemoryServer} from 'mongodb-memory-server'
import mongoose from 'mongoose'
// Your server and models
@@ -52,7 +52,7 @@ Next start the in-memory MongoDB instance and connect to Mongoose:

// Start MongoDB instance
const mongod = new MongodbMemoryServer()
const mongod = new MongoMemoryServer()
// Create connection to Mongoose before tests are run
test.before(async () => {

0 comments on commit 6b5a713

Please sign in to comment.
You can’t perform that action at this time.