Skip to content

Commit 2f6bf8a

Browse files
committed
scattergl: make sure text(template) is not mutated
1 parent decec45 commit 2f6bf8a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/jasmine/tests/scattergl_test.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,11 @@ describe('end-to-end scattergl tests', function() {
128128
'textposition': 'top center'
129129
};
130130
mock[attr] = ['1', '2', '3'];
131-
Plotly.plot(gd, [mock]);
131+
Plotly.plot(gd, [mock])
132+
.then(function() {
133+
expect(mock[attr].length).toBe(3);
134+
})
135+
.catch(failTest);
132136
}).not.toThrow();
133137
done();
134138
});

0 commit comments

Comments
 (0)