Skip to content

Commit ba77f5b

Browse files
committed
copy hoveron fill testing mocks
1 parent f22fac8 commit ba77f5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/jasmine/tests/hover_label_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ describe('hover on fill', function() {
679679
}
680680

681681
it('should always show one label in the right place', function(done) {
682-
var mock = require('@mocks/scatter_fill_self_next.json');
682+
var mock = Lib.extendDeep({}, require('@mocks/scatter_fill_self_next.json'));
683683
mock.data.forEach(function(trace) { trace.hoveron = 'fills'; });
684684

685685
Plotly.plot(createGraphDiv(), mock.data, mock.layout).then(function() {
@@ -692,7 +692,7 @@ describe('hover on fill', function() {
692692
});
693693

694694
it('should work for scatterternary too', function(done) {
695-
var mock = require('@mocks/ternary_fill.json');
695+
var mock = Lib.extendDeep({}, require('@mocks/ternary_fill.json'));
696696
mock.data.forEach(function(trace) { trace.hoveron = 'fills'; });
697697

698698
Plotly.plot(createGraphDiv(), mock.data, mock.layout).then(function() {

0 commit comments

Comments
 (0)