Skip to content

Commit f8e3ec3

Browse files
committed
use object not array to extend layout in tests
1 parent cbedb42 commit f8e3ec3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/jasmine/tests/legend_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2393,7 +2393,7 @@ describe('legend with custom legendwidth', function() {
23932393
});
23942394

23952395
it('should change width when legend has entrywidth', function(done) {
2396-
var extendedLayout = Lib.extendDeep([], layout);
2396+
var extendedLayout = Lib.extendDeep({}, layout);
23972397
var width = 50;
23982398
extendedLayout.legend.entrywidth = width;
23992399

@@ -2421,7 +2421,7 @@ describe('legend with custom legendwidth', function() {
24212421
});
24222422

24232423
it('should change width when legend has entrywidth and entrywidthmode is fraction', function(done) {
2424-
var extendedLayout = Lib.extendDeep([], layout);
2424+
var extendedLayout = Lib.extendDeep({}, layout);
24252425
extendedLayout.legend.entrywidthmode = 'fraction';
24262426
extendedLayout.legend.entrywidth = 0.3;
24272427

0 commit comments

Comments
 (0)