Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const createSession = require('../test-helper');
- beforeAll(async () => {
- fakePerson = await query.insert('people', {
- username: 'username',
- password: 'password',
- email: 'username@example.com',
- activation_completed_at: new Date()
- });
- await createSession(agent, fakePerson);
- });
- it ('They can access their profile', async () => {
- return agent
- .get(`/users/${fakePerson.id}`)
- .expect('content-type', 'text/html; charset=utf-8')
- .expect(200)
- });
Add Comment
Please, Sign In to add comment