Skip to content

Commit

Permalink
fix surface cmin/cmax/cauto defaults test
Browse files Browse the repository at this point in the history
  • Loading branch information
etpinard committed Feb 19, 2019
1 parent 40a7510 commit ff67812
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/jasmine/tests/surface_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,16 +127,14 @@ describe('Test surface', function() {
it('should coerce \'c\' attributes with \'c\' values regardless of `\'z\' if \'c\' is present', function() {
traceIn = {
z: [[1, 2, 3], [2, 1, 2]],
zauto: false,
zmin: 0,
zmax: 10,
cauto: true,
cmin: -10,
cmax: 20
};

supplyDefaults(traceIn, traceOut, defaultColor, layout);
expect(traceOut.cauto).toEqual(true);
expect(traceOut.cauto).toEqual(false);
expect(traceOut.cmin).toEqual(-10);
expect(traceOut.cmax).toEqual(20);
});
Expand Down

0 comments on commit ff67812

Please sign in to comment.