From c908667a79782191a9b70ada80c85143b88847dd Mon Sep 17 00:00:00 2001 From: Quincy Morgan Date: Fri, 5 Jun 2020 14:35:32 -0400 Subject: [PATCH] Fix operationExtract code tests --- test/spec/operations/extract.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/test/spec/operations/extract.js b/test/spec/operations/extract.js index f95af5cf1..bc69e7545 100644 --- a/test/spec/operations/extract.js +++ b/test/spec/operations/extract.js @@ -6,14 +6,21 @@ describe('iD.operationExtract', function () { fakeContext = {}; fakeContext.graph = function () { return graph; }; fakeContext.hasHiddenConnections = function () { return false; }; + fakeContext.map = function() { + return { + extent: function() { + return iD.geoExtent([-180, -90], [180, 90]); + } + }; + }; var fakeTags = { 'name': 'fake' }; // Set up graph var createFakeNode = function (id, hasTags) { return hasTags - ? { id: id, type: 'node', tags: fakeTags } - : { id: id, type: 'node' }; + ? { id: id, type: 'node', loc: [0, 0], tags: fakeTags } + : { id: id, type: 'node', loc: [0, 0] }; }; describe('available', function () {