File list tests

This commit is contained in:
veeso
2021-03-04 13:55:10 +01:00
parent 3ecf172fb5
commit f3cbbb8d81
3 changed files with 101 additions and 14 deletions

View File

@@ -351,7 +351,7 @@ mod tests {
assert_eq!(props.italic, true);
assert_eq!(props.texts.title.as_ref().unwrap().as_str(), "hello");
assert_eq!(props.input_type, InputType::Password);
assert_eq!(props.input_len.as_ref().unwrap(), 16);
assert_eq!(*props.input_len.as_ref().unwrap(), 16);
assert_eq!(props.value.as_ref().unwrap().as_str(), "Hello");
assert_eq!(
props.texts.body.as_ref().unwrap().get(0).unwrap().as_str(),