Skip to content

Commit

Permalink
Modify test implementation to reflect new getArrayBuffer response
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauren Budorick committed Jan 10, 2017
1 parent 80b8a2e commit 4273e76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/suite_implementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ sinon.stub(ajax, 'getArrayBuffer', (url, callback) => {
if (cache[url]) return cached(cache[url], callback);
return request({url: url, encoding: null}, (error, response, body) => {
if (!error && response.statusCode >= 200 && response.statusCode < 300) {
cache[url] = body;
callback(null, body);
cache[url] = {data: body};
callback(null, {data: body});
} else {
callback(error || new Error(response.statusCode));
}
Expand Down

0 comments on commit 4273e76

Please sign in to comment.