@@ -11,7 +11,7 @@ const URI = process.env.MONGO_DB;
11
11
beforeAll ( ( ) => {
12
12
mongoose
13
13
. connect ( URI , { useNewUrlParser : true } , { useUnifiedTopology : true } )
14
- . then ( ( res ) => console . log ( 'connected to test database' ) ) ;
14
+ . then ( ( ) => console . log ( 'connected to test database' ) ) ;
15
15
} ) ;
16
16
17
17
afterAll ( async ( ) => {
@@ -20,7 +20,7 @@ afterAll(async () => {
20
20
//for creating unqiue login credentials
21
21
const num = Math . floor ( Math . random ( ) * 1000 ) ;
22
22
23
- xdescribe ( 'User authentication tests' , ( ) => {
23
+ describe ( 'User authentication tests' , ( ) => {
24
24
//test connection to server
25
25
describe ( 'initial connection test' , ( ) => {
26
26
it ( 'should connect to the server' , async ( ) => {
@@ -54,9 +54,9 @@ xdescribe('User authentication tests', () => {
54
54
} ) ;
55
55
} ) ;
56
56
} ) ;
57
- xdescribe ( '/login' , ( ) => {
57
+ describe ( '/login' , ( ) => {
58
58
// tests whether existing login information permits user to log in
59
- describe ( 'POST' , ( ) => {
59
+ xdescribe ( 'POST' , ( ) => {
60
60
it ( 'responds with status 200 and json object on verified user login' , ( ) => {
61
61
return request ( app )
62
62
. post ( '/login' )
@@ -87,7 +87,7 @@ xdescribe('/login', () => {
87
87
} ) ;
88
88
} ) ;
89
89
90
- xdescribe ( 'sessionIsCreated' , ( ) => {
90
+ describe ( 'sessionIsCreated' , ( ) => {
91
91
it ( "returns the message 'No Username Input' when no username is entered" , ( ) => {
92
92
return request ( app )
93
93
. post ( '/login' )
0 commit comments