Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created July 1, 2020 11:33
Show Gist options
  • Save velotiotech/0764ed93f84ae972f337f88f50740eaf to your computer and use it in GitHub Desktop.
Save velotiotech/0764ed93f84ae972f337f88f50740eaf to your computer and use it in GitHub Desktop.
tests["Status code is 200"] = responseCode.code === 200;
tests["Response time is less than 200ms"] = responseTime < 200;
tests["Response time is acceptable"] = _.inRange(responseTime, 0, 500);
tests["Body is not empty"] = (responseBody!==null || responseBody.length!==0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment