Skip to content

Commit

Permalink
fix: added test
Browse files Browse the repository at this point in the history
  • Loading branch information
totalimmersion committed Sep 18, 2023
1 parent 5455c6a commit f67b2d2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/test/java/io/getstream/chat/java/ChannelTypeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,17 @@ void whenCreatingDefaultChannelType_thenCanUpdateWithNoException() {
() -> ChannelType.update(channelName).automod(AutoMod.SIMPLE).request());
}

@DisplayName("Can update channel type with quotes with no Exception")
@Test
void whenCreatingDefaultChannelType_thenCanUpdateWithNoException() {
String channelName = RandomStringUtils.randomAlphabetic(10);
Assertions.assertDoesNotThrow(
() -> ChannelType.create().withDefaultConfig().name(channelName).request());
pause();
Assertions.assertDoesNotThrow(
() -> ChannelType.update(channelName).quotes(false).request());
}

@DisplayName("Can create channel type with specific grants")
@Test
void whenManipulatingChannelTypeWithGrants_throwsNoException() {
Expand Down

0 comments on commit f67b2d2

Please sign in to comment.