Re-enable the video translation Jasmine tests

TNL-2689
This commit is contained in:
Andy Armstrong
2015-07-08 13:28:37 -04:00
parent 9e5290c1a7
commit 14a9796cd4
4 changed files with 143 additions and 100 deletions

View File

@@ -18,12 +18,12 @@ define(['sinon', 'underscore'], function(sinon, _) {
* Get a reference to the mocked server, and respond
* to all requests with the specified statusCode.
*/
fakeServer = function (statusCode, that) {
fakeServer = function (that, response) {
var server = sinon.fakeServer.create();
that.after(function() {
server.restore();
});
server.respondWith([statusCode, {}, '']);
server.respondWith(response);
return server;
};