Last active
December 24, 2015 04:29
-
-
Save can3p/6744401 to your computer and use it in GitHub Desktop.
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
var pipeline = require('when/pipeline') | |
, callbacks = require('when/callbacks'); | |
var mockMakeAjaxRequestAndReturnCallback = callbacks.lift(require('mockMakeAjaxRequestAndReturnCallback')); | |
var mockRenderData = require('mockRenderData'); | |
var generateLink = function (domain) { | |
return 'http://' + domain + '/resource'; | |
}; | |
pipeline([ | |
mockMakeAjaxRequestAndReturnCallback.bind(null, '/domain'), | |
generateLink, | |
mockMakeAjaxRequestAndReturnCallback, | |
mockRenderData | |
]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment