Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bioviz-js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Remi PLANEL
bioviz-js
Commits
9fa7ea91
Commit
9fa7ea91
authored
May 29, 2019
by
Remi PLANEL
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test on genome browser width
parent
f5ecaa26
Pipeline
#12080
passed with stage
in 1 minute
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
tests/selected-chromosome.test.ts
tests/selected-chromosome.test.ts
+6
-2
No files found.
tests/selected-chromosome.test.ts
View file @
9fa7ea91
...
@@ -33,13 +33,17 @@ describe("Test Selected Chromosome", () => {
...
@@ -33,13 +33,17 @@ describe("Test Selected Chromosome", () => {
'
<div><svg width="500"><g id="container"></g></svg></div>
'
;
'
<div><svg width="500"><g id="container"></g></svg></div>
'
;
const
container
=
select
(
"
svg
"
)
const
container
=
select
(
"
svg
"
)
.
select
<
SVGGElement
>
(
"
g
"
);
.
select
<
SVGGElement
>
(
"
g
"
);
const
width
=
1500
;
container
container
.
datum
<
SelectedChromosomeData
[]
>
(
data
)
.
datum
<
SelectedChromosomeData
[]
>
(
data
)
.
call
(
selectedChromosomeComponent
,
1500
);
.
call
(
selectedChromosomeComponent
,
width
);
// Start tests
// Start tests
test
(
"
Test data to DOM elements
"
,
()
=>
{
test
(
"
Test data to DOM elements
"
,
()
=>
{
expect
(
container
.
html
()).
toBe
(
result
);
expect
(
container
.
html
()).
toBe
(
result
);
})
})
test
(
"
Width background rectangle
"
,
()
=>
{
const
displayWidth
=
parseInt
(
container
.
select
(
"
.genome-browser-background
"
).
attr
(
"
width
"
));
expect
(
displayWidth
).
toBe
(
width
);
})
})
})
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment