Skip to content

Commit

Permalink
Prevent AddPoint tests from making network requests
Browse files Browse the repository at this point in the history
  • Loading branch information
jfirebaugh committed Feb 9, 2016
1 parent 79df184 commit ac3dfb9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/id/renderer/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ iD.Background = function(context) {
if (chosen && chosen.indexOf('custom:') === 0) {
background.baseLayerSource(iD.BackgroundSource.Custom(chosen.replace(/^custom:/, '')));
} else {
background.baseLayerSource(findSource(chosen) || best || findSource('Bing') || backgroundSources[1]);
background.baseLayerSource(findSource(chosen) || best || findSource('Bing') || backgroundSources[1] || backgroundSources[0]);
}

var locator = _.find(backgroundSources, function(d) {
Expand Down
4 changes: 3 additions & 1 deletion test/spec/modes/add_point.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ describe("iD.modes.AddPoint", function() {

context = iD()
.presets(iD.data.presets)
.imagery(iD.data.imagery)
.imagery([])
.container(container);

context.loadTiles = function () {};

container.call(context.map())
.append('div')
.attr('class', 'inspector-wrap');
Expand Down

0 comments on commit ac3dfb9

Please sign in to comment.