@@ -58,20 +58,20 @@ test("Check custom color question with allowEmptyValue:true", () => {
58
58
const question = new QuestionColorModel ( "q1" ) ;
59
59
question . allowEmptyValue = true ;
60
60
expect ( question . renderedValue ) . toBe ( "" ) ;
61
- expect ( question . renderedColorValue ) . toBe ( "" ) ;
61
+ expect ( question . renderedColorValue ) . toBe ( "#000000 " ) ;
62
62
expect ( question . value ) . toBe ( undefined ) ;
63
63
question . value = undefined ;
64
64
expect ( question . value ) . toBe ( undefined ) ;
65
65
expect ( question . renderedValue ) . toBe ( "" ) ;
66
- expect ( question . renderedColorValue ) . toBe ( "" ) ;
66
+ expect ( question . renderedColorValue ) . toBe ( "#000000 " ) ;
67
67
question . value = null ;
68
68
expect ( question . value ) . toBe ( undefined ) ;
69
69
expect ( question . renderedValue ) . toBe ( "" ) ;
70
- expect ( question . renderedColorValue ) . toBe ( "" ) ;
70
+ expect ( question . renderedColorValue ) . toBe ( "#000000 " ) ;
71
71
question . value = "" ;
72
72
expect ( question . value ) . toBe ( undefined ) ;
73
73
expect ( question . renderedValue ) . toBe ( "" ) ;
74
- expect ( question . renderedColorValue ) . toBe ( "" ) ;
74
+ expect ( question . renderedColorValue ) . toBe ( "#000000 " ) ;
75
75
} ) ;
76
76
test ( "Check custom color question event callbacks" , ( ) => {
77
77
const question = new QuestionColorModel ( "q1" ) ;
@@ -172,7 +172,7 @@ test("QuestionColorModel renderedValue always HEX (value from survey)", () => {
172
172
test ( "QuestionColorModel renderedValue when _renderedValue and value are empty" , ( ) => {
173
173
let q = new QuestionColorModel ( "q1" ) ;
174
174
q . _renderedValue = "" ;
175
- expect ( q . renderedColorValue ) . toBe ( "" ) ;
175
+ expect ( q . renderedColorValue ) . toBe ( "#000000 " ) ;
176
176
q = new QuestionColorModel ( "q1" ) ;
177
177
q . _renderedValue = "" ;
178
178
q . value = "" ;
@@ -188,8 +188,8 @@ test("Check signature pad color properties", () => {
188
188
expect ( backgroundColorQuestion . getType ( ) ) . toBe ( "color" ) ;
189
189
expect ( penColorQuestion . renderedValue ) . toBe ( "" ) ;
190
190
expect ( backgroundColorQuestion . renderedValue ) . toBe ( "" ) ;
191
- expect ( penColorQuestion . renderedColorValue ) . toBe ( "" ) ;
192
- expect ( backgroundColorQuestion . renderedColorValue ) . toBe ( "" ) ;
191
+ expect ( penColorQuestion . renderedColorValue ) . toBe ( "#000000 " ) ;
192
+ expect ( backgroundColorQuestion . renderedColorValue ) . toBe ( "#000000 " ) ;
193
193
question . penColor = "#f3f3f3" ;
194
194
expect ( penColorQuestion . renderedValue ) . toBe ( "#F3F3F3" ) ;
195
195
expect ( penColorQuestion . renderedColorValue ) . toBe ( "#F3F3F3" ) ;
@@ -209,8 +209,8 @@ test("Check signature pad color properties", () => {
209
209
expect ( backgroundColorQuestion . allowEmptyValue ) . toBeTruthy ( ) ;
210
210
expect ( penColorQuestion . renderedValue ) . toBe ( "" ) ;
211
211
expect ( backgroundColorQuestion . renderedValue ) . toBe ( "" ) ;
212
- expect ( penColorQuestion . renderedColorValue ) . toBe ( "" ) ;
213
- expect ( backgroundColorQuestion . renderedColorValue ) . toBe ( "" ) ;
212
+ expect ( penColorQuestion . renderedColorValue ) . toBe ( "#000000 " ) ;
213
+ expect ( backgroundColorQuestion . renderedColorValue ) . toBe ( "#000000 " ) ;
214
214
question . penColor = "#f3f3f3" ;
215
215
expect ( penColorQuestion . renderedValue ) . toBe ( "#F3F3F3" ) ;
216
216
expect ( penColorQuestion . renderedColorValue ) . toBe ( "#F3F3F3" ) ;
0 commit comments