Skip to content

Commit cf7c061

Browse files
committedJun 10, 2020
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

+2-2
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)
Please sign in to comment.