Guest User

Untitled

a guest
Mar 29th, 2018
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. const createSession = require('../test-helper');
  2.  
  3. beforeAll(async () => {
  4. fakePerson = await query.insert('people', {
  5. username: 'username',
  6. password: 'password',
  7. email: 'username@example.com',
  8. activation_completed_at: new Date()
  9. });
  10. await createSession(agent, fakePerson);
  11. });
  12.  
  13. it ('They can access their profile', async () => {
  14. return agent
  15. .get(`/users/${fakePerson.id}`)
  16. .expect('content-type', 'text/html; charset=utf-8')
  17. .expect(200)
  18. });
Add Comment
Please, Sign In to add comment