Commit 2d873f8a authored by Piotr Gawron's avatar Piotr Gawron
Browse files

fix on mock in a test

parent 44c70b0e
......@@ -2,6 +2,8 @@
require("./mocha-config");
var logger = require('./logger');
var Alias = require("../../main/js/map/data/Alias");
var AbstractCustomMap = require("../../main/js/map/AbstractCustomMap");
var ChemicalDbOverlay = require("../../main/js/map/overlay/ChemicalDbOverlay");
......@@ -181,6 +183,9 @@ Helper.prototype.createDbOverlay = function(map) {
map : map,
name : "search",
});
result.clear = function(){
logger.debug("Clear mock");
};
map.registerSource(result);
return result;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment