Skip to content

Commit

Permalink
Issue #60: Rename data array example and add test for it.
Browse files Browse the repository at this point in the history
  • Loading branch information
yaph committed Nov 4, 2019
1 parent 4469829 commit 20db942
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ <h1>d3-geomap examples</h1>
<a href="./world-plain.html">World Map Plain</a>
</li>
<li>
<a href="./test-data-array.html">Test Data Array</a>
<a href="./data-array.html">Data Array</a>
</li>
<li>
<a href="./us-states-choropleth.html">US States Choropleth</a>
Expand Down
10 changes: 10 additions & 0 deletions tests/data-array.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
'data-array test': browser => {
browser
.url('http://localhost:8000/examples/data-array.html')
.waitForElementVisible('#map svg')
.assert.visible('.unit-ESP')
.assert.attributeContains('.unit-ESP', 'style', 'rgb(255, 247, 236)')
.end();
}
};
2 changes: 1 addition & 1 deletion tests/world-plain.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
'world-plain.html test' : function (browser) {
'world-plain test': browser => {
browser
.url('http://localhost:8000/examples/world-plain.html')
.waitForElementVisible('#map svg')
Expand Down

0 comments on commit 20db942

Please sign in to comment.