using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies
This file contains hidden or 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
# | Source : http://sed.sourceforge.net/sed1line.txt | |
# | ------------------------------------------------------------------------- | |
# | USEFUL ONE-LINE SCRIPTS FOR SED (Unix stream editor) Dec. 29, 2005 | |
# | Compiled by Eric Pement - pemente[at]northpark[dot]edu version 5.5 | |
# | | |
# | Latest version of this file (in English) is usually at: | |
# | http://sed.sourceforge.net/sed1line.txt | |
# | http://www.pement.org/sed/sed1line.txt | |
# | | |
# | This file will also available in other languages: |
This file contains hidden or 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
import axios from 'axios' | |
let myData = [{id: 0}, {id: 1}, {id: 2}, {id: 3}] | |
async function fetchData(dataSet) { | |
const pokemonPromises = dataSet.map(entry => { | |
return axios.get(`https://ironhack-pokeapi.herokuapp.com/pokemon/${entry.id}`) | |
}) | |
const results = await Promise.all(pokemonPromises) |
- this
- bind
- Hoisting
- Operator Precedence
- Lambda
- Object literals
- Prototypical inheritance vs. classical inheritance