Using ES2015 generators to mock API responses
gideonpyzer.com