Skip to content

Commit

Permalink
Unit test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobinso committed Mar 1, 2021
1 parent 2400c68 commit 39a63f0
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions test/testSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,29 @@ import search from "../js/search.js";

suite("testSearch", function () {

genome.featureDB = {
genome.featureDB = {
"MUC1": {chr: "chr1", start: 155185820, end: 155192900}, // coords are off on purpose, for test
"FOO BAR": {chr: "chrX", start: 1, end: 2} // for testing feature names with spaces
}

const browser = {
genome: genome,
searchConfig : {

config: {
// This looks redundant, but its important for the test
search: {
type: "plain",
url: 'https://igv.org/genomes/locus.php?genome=$GENOME$&name=$FEATURE$',
coords: 0,
chromosomeField: "chromosome",
startField: "start",
endField: "end",
geneField: "gene",
snpField: "snp"
}
},

searchConfig: {
type: "plain",
url: 'https://igv.org/genomes/locus.php?genome=$GENOME$&name=$FEATURE$',
coords: 0,
Expand All @@ -23,7 +38,7 @@ suite("testSearch", function () {
endField: "end",
geneField: "gene",
snpField: "snp"
},
}
}

test("locus strings", function () {
Expand Down

0 comments on commit 39a63f0

Please sign in to comment.