Skip to content

Commit 056fa19

Browse files
Fix unit tests
1 parent 06f0775 commit 056fa19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WooCommerce/src/test/kotlin/com/woocommerce/android/ui/customfields/list/CustomFieldsViewModelTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ class CustomFieldsViewModelTest : BaseUnitTest() {
491491
val customField = CustomField(
492492
id = 1,
493493
key = "key",
494-
value = WCMetaDataValue.fromRawString("{\"key\": \"value\"}")
494+
value = WCMetaDataValue("{\"key\": \"value\"}")
495495
)
496496
setup {
497497
whenever(repository.observeDisplayableCustomFields(PARENT_ITEM_ID)).thenReturn(flowOf(listOf(customField)))
@@ -514,7 +514,7 @@ class CustomFieldsViewModelTest : BaseUnitTest() {
514514
val customField = CustomField(
515515
id = 1,
516516
key = "key",
517-
value = WCMetaDataValue.fromRawString("{\"key\": \"value\"}")
517+
value = WCMetaDataValue("{\"key\": \"value\"}")
518518
)
519519
setup {
520520
whenever(repository.observeDisplayableCustomFields(PARENT_ITEM_ID)).thenReturn(flowOf(listOf(customField)))

0 commit comments

Comments
 (0)