adding basic jest tests

This commit is contained in:
Ken
2019-02-15 20:23:26 -08:00
parent 988aea6c1d
commit f019207dba
4 changed files with 28 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ async function fetchSomething() {
return await response.text();
}
// Async functions always returns Promise
fetchSomething().then(text => {
console.log('hello ' + text);
});