Skip to content

Instantly share code, notes, and snippets.

@JamesMessinger
Created July 27, 2017 19:23
Show Gist options
  • Save JamesMessinger/82efb4b41075f1eb5df392bd879b017d to your computer and use it in GitHub Desktop.
Save JamesMessinger/82efb4b41075f1eb5df392bd879b017d to your computer and use it in GitHub Desktop.
Reusing code in Postman
// First, run the common tests
eval(globals.commonTests)();
// Then run any request-specific tests
tests["Status code is 200"] = responseCode.code === 200;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment