Skip to content

Commit 9f3624d

Browse files
committed
Update bar test after adding support for alignmentgroup and offsetgroup for stackable traces
1 parent db602ab commit 9f3624d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/jasmine/tests/bar_test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ describe('Bar.supplyDefaults', function() {
243243
expect(traceOut.ycalendar).toBe('ethiopian');
244244
});
245245

246-
it('should not include alignmentgroup/offsetgroup when barmode is not *group*', function() {
246+
it('should include alignmentgroup/offsetgroup regardless of barmode', function() {
247247
var gd = {
248248
data: [{type: 'bar', y: [1], alignmentgroup: 'a', offsetgroup: '1'}],
249249
layout: {barmode: 'group'}
@@ -255,8 +255,8 @@ describe('Bar.supplyDefaults', function() {
255255

256256
gd.layout.barmode = 'stack';
257257
supplyAllDefaults(gd);
258-
expect(gd._fullData[0].alignmentgroup).toBe(undefined, 'alignementgroup');
259-
expect(gd._fullData[0].offsetgroup).toBe(undefined, 'offsetgroup');
258+
expect(gd._fullData[0].alignmentgroup).toBe('a', 'alignementgroup');
259+
expect(gd._fullData[0].offsetgroup).toBe('1', 'offsetgroup');
260260
});
261261

262262
it('should have a barmode only if it contains bars', function() {

0 commit comments

Comments
 (0)