Last active
May 12, 2020 09:06
-
-
Save owfm/d977cc61dc0ed8c6639809e518f69d24 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// generateProposal.js | |
"use-strict"; | |
import sample from "lodash/sample"; | |
export const call = (event, context, callback) => { | |
const roles = [ | |
"Tea Fetcher", | |
"CEO", | |
"Sous Chef", | |
"Head Matron", | |
"Team Captain", | |
"Head Gardener", | |
"Chief Baker", | |
"CTO", | |
"Nobel Comittee Member", | |
]; | |
const names = [ | |
"Ollie Mansell", | |
"Terry Pratchett", | |
"Jane Goodall", | |
"Marie Curie", | |
"Jane Fonda", | |
"Winston Churchill", | |
"Henry VIII", | |
"Noam Chomsky", | |
"The Dalai Lama", | |
"Derrick Bell", | |
"Elvis Presely", | |
"Danny Rampling", | |
"Paul Dirac", | |
]; | |
const promotionProposal = { | |
employeeName: sample(names), | |
proposedRole: sample(roles), | |
mostRecent360Score: Math.floor(Math.random() * 100), | |
recentDisciplinaries: Math.floor(Math.random() * 5), | |
}; | |
return callback(null, promotionProposal); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment