diff --git a/frontend-js/src/test/js/map/window/AliasInfoWindow-test.js b/frontend-js/src/test/js/map/window/AliasInfoWindow-test.js index a5a74422e46d55e12d99b8d2b1f3eb2f002cb344..d36086b3e2db09d6e5c658288df266a3f8af37df 100644 --- a/frontend-js/src/test/js/map/window/AliasInfoWindow-test.js +++ b/frontend-js/src/test/js/map/window/AliasInfoWindow-test.js @@ -7,6 +7,7 @@ var Promise = require("bluebird"); var functions = require('../../../../main/js/Functions'); var Alias = require('../../../../main/js/map/data/Alias'); +var ReferenceGenome = require('../../../../main/js/map/data/ReferenceGenome'); var LayoutAlias = require('../../../../main/js/map/data/LayoutAlias'); var Drug = require('../../../../main/js/map/data/Drug'); var GeneVariant = require('../../../../main/js/map/data/GeneVariant'); @@ -248,6 +249,25 @@ describe('AliasInfoWindow', function () { }).then(function () { var overlay = helper.createOverlay(); overlay.addAlias(layoutAlias); + map._referenceGenome = { + 'UCSC': { + 'eboVir3': new ReferenceGenome({ + type: "TYP", + version: "v3", + localUrl: "http://google.pl/", + sourceUrl: "http://google.pl/", + organism: { + "annotatorClassName": "", + "descriptionByType": "", + "descriptionByTypeRelation": "", + "id": 517528, + "link": "http://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?mode=Info&id=8822", + "resource": "8822", + "type": "TAXONOMY" + } + }) + } + }; return win.createGenomicDiv({overlays: [overlay]}); }).then(function (div) { assert.ok(div);