Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0d0c297

Browse filesBrowse files
committed
update colorscale tests,
- to reflect spaceless color strings in colorscale definitions.
1 parent da72f7b commit 0d0c297
Copy full SHA for 0d0c297

File tree

1 file changed

+5
-4
lines changed
Filter options

1 file changed

+5
-4
lines changed

‎test/jasmine/tests/colorscale_test.js

Copy file name to clipboardExpand all lines: test/jasmine/tests/colorscale_test.js
+5-4Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ describe('Test colorscale:', function() {
325325
z = [[0, -1.5], [-2, -10]];
326326
calcColorscale(trace, z, '', 'z');
327327
expect(trace.autocolorscale).toBe(true);
328-
expect(trace.colorscale[5]).toEqual([1, 'rgb(220, 220, 220)']);
328+
expect(trace.colorscale[5]).toEqual([1, 'rgb(220,220,220)']);
329329
});
330330

331331
it('should be Blues when the only numerical z <= -0.5', function() {
@@ -338,7 +338,7 @@ describe('Test colorscale:', function() {
338338
z = [[undefined, undefined], [-0.5, undefined]];
339339
calcColorscale(trace, z, '', 'z');
340340
expect(trace.autocolorscale).toBe(true);
341-
expect(trace.colorscale[5]).toEqual([1, 'rgb(220, 220, 220)']);
341+
expect(trace.colorscale[5]).toEqual([1, 'rgb(220,220,220)']);
342342
});
343343

344344
it('should be Reds when the only numerical z >= 0.5', function() {
@@ -351,7 +351,7 @@ describe('Test colorscale:', function() {
351351
z = [[undefined, undefined], [0.5, undefined]];
352352
calcColorscale(trace, z, '', 'z');
353353
expect(trace.autocolorscale).toBe(true);
354-
expect(trace.colorscale[0]).toEqual([0, 'rgb(220, 220, 220)']);
354+
expect(trace.colorscale[0]).toEqual([0, 'rgb(220,220,220)']);
355355
});
356356

357357
it('should be reverse the auto scale when reversescale is true', function() {
@@ -365,7 +365,8 @@ describe('Test colorscale:', function() {
365365
z = [[undefined, undefined], [0.5, undefined]];
366366
calcColorscale(trace, z, '', 'z');
367367
expect(trace.autocolorscale).toBe(true);
368-
expect(trace.colorscale[trace.colorscale.length-1]).toEqual([1, 'rgb(220, 220, 220)']);
368+
expect(trace.colorscale[trace.colorscale.length-1])
369+
.toEqual([1, 'rgb(220,220,220)']);
369370
});
370371

371372
});

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.