Skip to content

Commit 35cd161

Browse files
committed
fixups
1 parent cb108dc commit 35cd161

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

test/jasmine/assets/custom_matchers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ module.exports = {
6363
};
6464
}
6565
};
66-
},
66+
}
6767
};
6868

6969
function coercePosition(precision) {

test/jasmine/tests/contour_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ describe('contour calc', function() {
145145
jasmine.addMatchers(customMatchers);
146146
});
147147

148-
function _calc(trace) {
148+
function _calc(opts) {
149149
var base = { type: 'contour' },
150-
trace = Lib.extendFlat({}, base, trace),
150+
trace = Lib.extendFlat({}, base, opts),
151151
gd = { data: [trace] };
152152

153153
Plots.supplyDefaults(gd);

test/jasmine/tests/heatmap_test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,9 @@ describe('heatmap calc', function() {
204204
jasmine.addMatchers(customMatchers);
205205
});
206206

207-
function _calc(trace) {
207+
function _calc(opts) {
208208
var base = { type: 'heatmap' },
209-
trace = Lib.extendFlat({}, base, trace),
209+
trace = Lib.extendFlat({}, base, opts),
210210
gd = { data: [trace] };
211211

212212
Plots.supplyDefaults(gd);
@@ -221,7 +221,7 @@ describe('heatmap calc', function() {
221221
});
222222

223223
expect(out.x).toBeCloseToArray([-0.5, 0.5, 1.5, 2.5]);
224-
expect(out.y).toBeCloseToArray([-0.5, 0.5, 1.5, 2.5]);
224+
expect(out.y).toBeCloseToArray([-0.5, 0.5, 1.5]);
225225
expect(out.z).toBeCloseTo2DArray([[1, 2, 3], [3, 1, 2]]);
226226
});
227227

@@ -283,7 +283,7 @@ describe('heatmap calc', function() {
283283
});
284284

285285
expect(out.x).toBeCloseToArray([1.5, 2.5, 3.5, 4.5]);
286-
expect(out.y).toBeCloseToArray([2.5, 3.5, 4.5, 5.5]);
286+
expect(out.y).toBeCloseToArray([2.5, 3.5, 4.5]);
287287
expect(out.z).toBeCloseTo2DArray([[1, 2, 3], [3, 1, 2]]);
288288
});
289289

@@ -294,8 +294,8 @@ describe('heatmap calc', function() {
294294
z: [[1, 2, 3], [3, 1, 2]]
295295
});
296296

297-
expect(out.x).toBeCloseToArray([-0.5, 0.5, 1.5, 2.5, 3.5]);
298-
expect(out.y).toBeCloseToArray([-0.5, 0.5, 1.5, 2.5]);
297+
expect(out.x).toBeCloseToArray([-0.5, 0.5, 1.5, 2.5]);
298+
expect(out.y).toBeCloseToArray([-0.5, 0.5, 1.5]);
299299
expect(out.z).toBeCloseTo2DArray([[1, 2, 3], [3, 1, 2]]);
300300
});
301301
});

0 commit comments

Comments
 (0)