Skip to content

Conversation

@sergioflorentino
Copy link

// 1. Isolate problems
// 2. If you have doubts about the value of a function, test it with a fixed value
// 3. const hash = "thehash"; used by test
// Sorry my english is poor. I am brazilian

const hash = event.headers['hash'] ? event.headers.hash : ''
event.headers['hash'] // result true or false
event.headers.hash // result "thehash"

  // 1. Isolate problems
  // 2. If you have doubts about the value of a function, test it with a fixed value
  // 3. const hash = "thehash";    used by test 
  // Sorry my english is poor. I am brazilian 

const hash = event.headers['hash'] ? event.headers.hash : ''
event.headers['hash']  // result  true or false
event.headers.hash   // result  "thehash"
@netlify
Copy link

netlify bot commented Jan 16, 2021

Deploy request for quirky-swanson-c56a53 pending review.

Review with commit 0030077

https://app.netlify.com/sites/quirky-swanson-c56a53/deploys

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant