Giving nock (https://github.com/flatiron/nock ) a spin to mock http responses. Not a purist's solution, but seems to just work. /ht @globalo
-
-
Replying to @tobie
@tobie no way to live without it? for the sake of simpler and faster tests?2 replies 0 retweets 0 likes -
Replying to @wolframkriesing
@wolframkriesing well, I could mock the module that does the http calls to the GitHub API. Turned out to need a lot more code than nock.1 reply 0 retweets 0 likes -
Replying to @tobie
@tobie what about a tiny layer on top that just fulfills your wishes and u mock that?1 reply 0 retweets 0 likes -
Replying to @wolframkriesing
@wolframkriesing yeah, that was the original plan. Turns out I had to mock a lot more (because of promises).2 replies 0 retweets 0 likes
Replying to @tobie
@tobie @wolframkriesing : Stupid promises. Ruin everything.
3:38 PM - 2 Dec 2013
0 replies
0 retweets
2 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.