Skip to content

Commit 7d212ce

Browse files
authored
chore: Fix typo in HashID generator test
Adding a blank string as `missingDelimiterValue` ensures the test will fail if the generated ID does not contain the prefix
1 parent b609d9b commit 7d212ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/test/kotlin/com/cosmotech/api/id/hashids/HashidsCsmIdGeneratorTests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class HashidsCsmIdGeneratorTests {
2626
val hashid = this.hashidsCsmIdGenerator.generate("fake_scope")
2727
assertFalse { hashid.isBlank() }
2828
assertTrue { hashid.startsWith("F-", ignoreCase = false) }
29-
assertFalse { hashid.substringAfter("T-").isBlank() }
29+
assertFalse { hashid.substringAfter("F-", missingDelimiterValue = "").isBlank() }
3030
}
3131

3232
@Test

0 commit comments

Comments
 (0)