Skip to content

Commit b03f693

Browse files
committed
Add fixed width and height to test mock
1 parent 49ea59f commit b03f693

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

test/image/mocks/geo_first.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
}
1414
],
1515
"layout": {
16-
"showframe": true
16+
"showframe": true,
17+
"width": 600,
18+
"height": 440
1719
}
1820
}

test/jasmine/tests/geo_interact_test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ describe('Test geo interactions', function() {
1212

1313
afterEach(destroyGraphDiv);
1414

15-
describe('mock geo_first.json', function() {
15+
fdescribe('mock geo_first.json', function() {
1616
var mock = require('@mocks/geo_first.json');
1717

1818
beforeEach(function(done) {
@@ -21,7 +21,7 @@ describe('Test geo interactions', function() {
2121

2222
describe('scattegeo hover labels', function() {
2323
beforeEach(function() {
24-
mouseEvent('mouseover', 459, 246);
24+
mouseEvent('mouseover', 300, 235);
2525
});
2626

2727
it('should show one hover text group', function() {
@@ -43,7 +43,7 @@ describe('Test geo interactions', function() {
4343

4444
describe('choropleth hover labels', function() {
4545
beforeEach(function() {
46-
mouseEvent('mouseover', 628, 162);
46+
mouseEvent('mouseover', 400, 160);
4747
});
4848

4949
it('should show one hover text group', function() {

0 commit comments

Comments
 (0)