Skip to content

Instantly share code, notes, and snippets.

@rafaelaazevedo
Created April 19, 2020 19:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rafaelaazevedo/f8f62e3ca8df9b7d61544ec39cfa5fec to your computer and use it in GitHub Desktop.
Save rafaelaazevedo/f8f62e3ca8df9b7d61544ec39cfa5fec to your computer and use it in GitHub Desktop.
// Bad practice
const EXPECTED_BODY = {
name: fake.name,
surname: fake.surname,
createdDate: Date.now(),
country: fake.country()
}
// Good practice
const EXPECTED_BODY = {
name: "Foor",
surname: "bar",
createdDate: "2020-04-21",
country: "UK"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment