Skip to content

Commit 69e8a9b

Browse files
committed
removed param from connect
1 parent bf23a39 commit 69e8a9b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

__tests__/userAuth.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const URI = process.env.MONGO_DB;
1111
beforeAll(() => {
1212
mongoose
1313
.connect(URI, { useNewUrlParser: true }, { useUnifiedTopology: true })
14-
.then((res) => console.log('connected to test database'));
14+
.then(() => console.log('connected to test database'));
1515
});
1616

1717
afterAll(async () => {
@@ -20,7 +20,7 @@ afterAll(async () => {
2020
//for creating unqiue login credentials
2121
const num = Math.floor(Math.random() * 1000);
2222

23-
xdescribe('User authentication tests', () => {
23+
describe('User authentication tests', () => {
2424
//test connection to server
2525
describe('initial connection test', () => {
2626
it('should connect to the server', async () => {
@@ -54,9 +54,9 @@ xdescribe('User authentication tests', () => {
5454
});
5555
});
5656
});
57-
xdescribe('/login', () => {
57+
describe('/login', () => {
5858
// tests whether existing login information permits user to log in
59-
describe('POST', () => {
59+
xdescribe('POST', () => {
6060
it('responds with status 200 and json object on verified user login', () => {
6161
return request(app)
6262
.post('/login')
@@ -87,7 +87,7 @@ xdescribe('/login', () => {
8787
});
8888
});
8989

90-
xdescribe('sessionIsCreated', () => {
90+
describe('sessionIsCreated', () => {
9191
it("returns the message 'No Username Input' when no username is entered", () => {
9292
return request(app)
9393
.post('/login')

0 commit comments

Comments
 (0)