Skip to content

Commit 2455303

Browse files
committed
improve Plots.graphJson test (2)
1 parent 20233de commit 2455303

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

test/jasmine/tests/plots_test.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -514,16 +514,18 @@ describe('Test Plots', function() {
514514
title: 'frame A'
515515
},
516516
name: 'A'
517-
},
518-
null,
519-
{
517+
}, null, {
520518
data: [{
521519
y: [1, 2, 3],
522520
}],
523521
layout: {
524522
title: 'frame B'
525523
},
526524
name: 'B'
525+
}, {
526+
data: [null, false, undefined],
527+
layout: 'garbage',
528+
name: 'garbage'
527529
}]
528530
};
529531

@@ -535,6 +537,11 @@ describe('Test Plots', function() {
535537
expect(obj.layout).toEqual(mock.layout);
536538
expect(obj.frames[0]).toEqual(mock.frames[0]);
537539
expect(obj.frames[1]).toEqual(mock.frames[2]);
540+
expect(obj.frames[2]).toEqual({
541+
data: [null, false, null],
542+
layout: 'garbage',
543+
name: 'garbage'
544+
});
538545
})
539546
.then(function() {
540547
destroyGraphDiv();

0 commit comments

Comments
 (0)