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

Commit 4ad2e36

Browse files
committed
Add test to verify that invalid type is handled
1 parent 6aaa1ad commit 4ad2e36

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
@@ -863,4 +863,11 @@ class WCProductStoreTest {
863863
WCProductStore.IncludeType.fromValue("")
864864
).isNull()
865865
}
866+
867+
@Test
868+
fun `given include_type invalid, then return type null` () {
869+
assertThat(
870+
WCProductStore.IncludeType.fromValue("invalid")
871+
).isNull()
872+
}
866873
}

0 commit comments

Comments
 (0)