Skip to content

Instantly share code, notes, and snippets.

@HassenIO
Created June 21, 2018 10:10
Show Gist options
  • Save HassenIO/a811d1951487fb0883445bde58aba1b3 to your computer and use it in GitHub Desktop.
Save HassenIO/a811d1951487fb0883445bde58aba1b3 to your computer and use it in GitHub Desktop.
Test
const getSMSText = async (warning, id, introduced) => {
const text = notificationTemplate[warning.type].find(group =>
group.categories.includes(warning.category)
).sentences[introduced ? 'next' : '1st'];
const link = await googl.shorten(`${decodeURIComponent(warning.url)}${id}`);
return `${text} ${link}`;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment