Skip to content

Commit 1846095

Browse files
committed
Test lowercase command handling
1 parent 6aaa8f0 commit 1846095

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/integ/admin-rooms.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ describe("Admin rooms", function() {
873873
const newChannel = "#coffee";
874874

875875
// Expect the following commands to be sent in order
876-
const recvCommands = ["JOIN", "TOPIC", "PART", "STUPID"];
876+
const recvCommands = ["JOIN", "TOPIC", "PART", "STUPID", "lowercase"];
877877

878878
let cmdIx = 0;
879879
env.ircMock._whenClient(roomMapping.server, userIdNick, "send",
@@ -885,15 +885,15 @@ describe("Admin rooms", function() {
885885
cmdIx++;
886886
});
887887

888-
// 4 commands should be executed
889888
const commands = [
890889
`!cmd ${roomMapping.server} JOIN ${newChannel}`,
891890
`!cmd ${roomMapping.server} TOPIC ${newChannel} :some new fancy topic`,
892891
`!cmd ${roomMapping.server} PART ${newChannel}`,
893-
`!cmd ${roomMapping.server} STUPID COMMANDS`];
892+
`!cmd ${roomMapping.server} STUPID COMMANDS`,
893+
`!cmd ${roomMapping.server} lowercase command`,
894+
];
894895

895896
for (let i = 0; i < commands.length; i++) {
896-
// send commands
897897
await env.mockAppService._trigger("type:m.room.message", {
898898
content: {
899899
body: commands[i],

0 commit comments

Comments
 (0)