Files
recipe-manager/server/jest/tests/util/loginUser.test.ts
2022-12-16 09:16:54 -06:00

13 lines
318 B
TypeScript

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();
})
})