Skip to content

Commit

Permalink
chore: Update sample.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Juandavi1 authored Nov 14, 2023
1 parent f4141a2 commit 22c4a8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/sample.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ export default function () {

// Read type from __ENV or Prompt
const selected = __ENV.type ? __ENV.type : prompt.select("type of test", ...options)
const selected3 = __ENV.env ? __ENV.env : prompt.readString("any text")
const id = __ENV.env ? __ENV.env : prompt.readString("photo id (from 1 up to 100): ")

// Print values
console.log("values entered by the user: ", selected, selected3)

let res = http.get('http://httpbin.org/cookies')
let res = http.get('https://jsonplaceholder.typicode.com/photos/' + id)
check(res, {
'is status 200': (r) => r.status === 200,
});
Expand Down

0 comments on commit 22c4a8b

Please sign in to comment.