Skip to content

Commit 20233de

Browse files
committed
improve Plots.graphJson test
1 parent 84eebcb commit 20233de

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/jasmine/tests/plots_test.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,9 @@ describe('Test Plots', function() {
514514
title: 'frame A'
515515
},
516516
name: 'A'
517-
}, {
517+
},
518+
null,
519+
{
518520
data: [{
519521
y: [1, 2, 3],
520522
}],
@@ -531,7 +533,8 @@ describe('Test Plots', function() {
531533

532534
expect(obj.data).toEqual(mock.data);
533535
expect(obj.layout).toEqual(mock.layout);
534-
expect(obj.frames).toEqual(mock.frames);
536+
expect(obj.frames[0]).toEqual(mock.frames[0]);
537+
expect(obj.frames[1]).toEqual(mock.frames[2]);
535538
})
536539
.then(function() {
537540
destroyGraphDiv();

0 commit comments

Comments
 (0)