Skip to content
Snippets Groups Projects
Commit 9c1259fc authored by Piotr Gawron's avatar Piotr Gawron
Browse files

unit test fixed

parent 86220f75
No related branches found
No related tags found
2 merge requests!412changes from 12.1.0~beta.1 into master,!398Resolve "Default for `Custom overlays`"
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment