Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Commit 6aaa1ad

Browse files
committed
Add test to verify that empty type is handled
1 parent 8bf7155 commit 6aaa1ad

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

example/src/test/java/org/wordpress/android/fluxc/wc/product/WCProductStoreTest.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -856,4 +856,11 @@ class WCProductStoreTest {
856856
WCProductStore.IncludeType.fromValue("grouped")
857857
).isEqualTo(WCProductStore.IncludeType.Grouped)
858858
}
859+
860+
@Test
861+
fun `given include_type empty, then return type null` () {
862+
assertThat(
863+
WCProductStore.IncludeType.fromValue("")
864+
).isNull()
865+
}
859866
}

0 commit comments

Comments
 (0)