This file contains 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
'Given the flickr api returns 3 items'._(function () { | |
// Using builder pattern here is overkill, but important for | |
// scenarios with complex data dependencies | |
flickrItems = new FlickrItemBuilder().times(3); | |
mockHttp.uri('http://api.flickr.com/services/feeds/photos_public.gne') | |
.withData(function (data) { | |
return data.tags === 'mount ranier' | |
&& data.tagmode === 'any' | |
&& data.format === 'json' |
NewerOlder