8000 fixup Lib.coerce2 description and color test · plotly/plotly.js@cf7c061 · GitHub
[go: up one dir, main page]

Skip to content

Provide feedback

8000

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

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit cf7c061

Browse files
committed
fixup Lib.coerce2 description and color test
1 parent 1d9cc4a commit cf7c061

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/jasmine/tests/lib_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ describe('Test lib.js:', function() {
778778
expect(sizeOut).toBe(outObj.testMarker.testSize);
779779
});
780780

781-
it('should set and return the default if the user input is not valid', function() {
781+
it('should set the default and return false if the user input is not valid', function() {
782782
var colVal = 'r';
783783
var sizeVal = 'aaaaah!';
784784
var attrs = {
@@ -793,7 +793,7 @@ describe('Test lib.js:', function() {
793793
var sizeOut = coerce2(obj, outObj, attrs, 'testMarker.testSize');
794794

795795
expect(colOut).toBe('rgba(0, 0, 0, 0)');
796-
expect(sizeOut).toBe(outObj.testMarker.testSize);
796+
expect(colOut).toBe(outObj.testMarker.testColor);
797797
expect(sizeOut).toBe(20);
798798
expect(sizeOut).toBe(outObj.testMarker.testSize);
799799
});

0 commit comments

Comments
 (0)
0