Skip to content

Instantly share code, notes, and snippets.

@leblancexplores
Created November 3, 2015 18:21
Show Gist options
  • Select an option

  • Save leblancexplores/9a66a82d0dccf991771b to your computer and use it in GitHub Desktop.

Select an option

Save leblancexplores/9a66a82d0dccf991771b to your computer and use it in GitHub Desktop.
1) UserController GET /users should return a collection:
Uncaught AssertionError: expected [ Array(2) ] to deeply equal [ Array(2) ]
+ expected - actual
[
{
"createdAt": "2015-10-29T23:22:13.254Z"
+ "email": "admin@gmail.com"
+ "first_name": "Admin"
+ "id": 1
+ "last_name": "User"
+ "role": "admin"
+ }
+ {
+ "createdAt": "2015-10-29T23:22:13.254Z"
"email": "test@gmail.com"
"first_name": "Test"
"id": 2
"last_name": "User"
"role": "user"
}
- {
- "createdAt": "2015-10-29T23:22:13.254Z"
- "email": "admin@gmail.com"
- "first_name": "Admin"
- "id": 1
- "last_name": "User"
- "role": "admin"
- }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment