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

Commit

Permalink
Add test to verify that invalid type is handled
Browse files Browse the repository at this point in the history
  • Loading branch information
AnirudhBhat committed Dec 5, 2024
1 parent 6aaa1ad commit 4ad2e36
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -863,4 +863,11 @@ class WCProductStoreTest {
WCProductStore.IncludeType.fromValue("")
).isNull()
}

@Test
fun `given include_type invalid, then return type null` () {
assertThat(
WCProductStore.IncludeType.fromValue("invalid")
).isNull()
}
}

0 comments on commit 4ad2e36

Please sign in to comment.