in progress: loginUser util for testing
This commit is contained in:
13
server/jest/tests/util/loginUser.test.ts
Normal file
13
server/jest/tests/util/loginUser.test.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import loginUser from "../../helpers/loginUser"
|
||||
|
||||
describe('login user', () => {
|
||||
let auth = { token: undefined }
|
||||
beforeAll(async () => {
|
||||
auth = await loginUser(auth);
|
||||
})
|
||||
|
||||
it('authenticates a hard-coded user', () => {
|
||||
console.log(auth);
|
||||
expect(auth.token).toBeDefined();
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user