Skip to content

Conversation

@jguz-pubnub
Copy link
Contributor

No description provided.

])
func test_AddWithDuplicates() {
let input = SubscribeInput(channels: ["c1", "c2", "c2-pnpres"], channelGroups: ["g1", "g2"])
let newInput = input.adding(channels: ["c3", "c3-pnpres"], and: ["g3"])

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could consider testing:
let input = SubscribeInput(channels: ["c1", "c1", "c2"], channelGroups: ["g1", "g2", "g2"])

"g1",
"g3"
])
func test_AddWithDuplicates() {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not necessary but nice to have could be a test that intercept REST call and verify channels name.

@jguz-pubnub jguz-pubnub merged commit f935d9e into master Nov 4, 2025
27 of 51 checks passed
@jguz-pubnub jguz-pubnub deleted the feat/ee-input-tests branch November 4, 2025 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants