Skip to content

chore: add tests for custom commands - #7357

Merged
pajlada merged 2 commits into
Chatterino:masterfrom
4rneee:chore/custom-command-tests
Oct 17, 2026
Merged

pajlada merged 2 commits into
Chatterino:masterfrom
4rneee:chore/custom-command-tests

Conversation

@4rneee

@4rneee 4rneee commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

I wanted to add a feature to custom commands but noticed that there are no tests for the current implementation. This adds tests for custom commands and placeholder handling to ensure we(I) don't break anything in the future.

Comment thread tests/src/Commands.cpp
.expected = "msg id: ",
},
{
.command = Command("/cmd", "msg id2: {msg.id;lol xd}"),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Aside: We never documented the alt text.

@pajlada
pajlada enabled auto-merge (squash) October 17, 2026 11:49
@pajlada
pajlada merged commit faaa55e into Chatterino:master Oct 17, 2026
18 checks passed
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.

3 participants