Skip to content

Commit

Permalink
updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
uo276976 committed Mar 4, 2024
1 parent d174e49 commit ef3561a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions gameservice/game-service.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ beforeAll(async () => {
mongoServer = await MongoMemoryServer.create();
const mongoUri = mongoServer.getUri();
process.env.MONGODB_URI = mongoUri;
mongoose.connect(mongoUri);
});

afterAll(async () => {
await mongoose.disconnect();
await mongoServer.stop();
});

Expand Down
3 changes: 0 additions & 3 deletions questionservice/question-service.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const request = require('supertest');
const { MongoMemoryServer } = require('mongodb-memory-server');
const mongoose = require('mongoose');
const app = require('./question-service');

let mongoServer;
Expand All @@ -9,11 +8,9 @@ beforeAll(async () => {
mongoServer = await MongoMemoryServer.create();
const mongoUri = mongoServer.getUri();
process.env.MONGODB_URI = mongoUri;
mongoose.connect(mongoUri);
});

afterAll(async () => {
await mongoose.disconnect();
await mongoServer.stop();
});

Expand Down

0 comments on commit ef3561a

Please sign in to comment.