Skip to content

Instantly share code, notes, and snippets.

@ThomRoman
Last active July 18, 2019 21:28
Show Gist options
  • Save ThomRoman/a366d85c5f3a7ed5bcfd39d28285c4b4 to your computer and use it in GitHub Desktop.
Save ThomRoman/a366d85c5f3a7ed5bcfd39d28285c4b4 to your computer and use it in GitHub Desktop.
Settings Test Postman
// test postman
let res = pm.response.json();
if(res.ok) {
let token = res.token;
pm.environment.set("token", token);
}else{
console.log('No se actualizó el token');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment