Skip to content

Commit

Permalink
update test for new Utils.io response signature
Browse files Browse the repository at this point in the history
  • Loading branch information
bcamper committed Nov 28, 2019
1 parent 522a6ec commit 998cb95
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/data_source_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,10 @@ describe('DataSource', () => {

beforeEach(() => {
mockTile = getMockTile();
sinon.stub(Utils, 'io').returns(Promise.resolve(getMockJSONResponse()));
sinon.stub(Utils, 'io').returns(Promise.resolve({
status: 200,
body: getMockJSONResponse()
}));
subject = new GeoJSONTileSource(options);
return subject.load(mockTile);
});
Expand Down

0 comments on commit 998cb95

Please sign in to comment.