@@ -31,7 +31,7 @@ const mockPresenceMembers = [
3131 } ,
3232] ;
3333
34- describe ( "channels:presence:get-all command" , ( ) => {
34+ describe ( "channels:presence:get command" , ( ) => {
3535 beforeEach ( ( ) => {
3636 const mock = getMockAblyRest ( ) ;
3737 const channel = mock . channels . _getChannel ( "test-channel" ) ;
@@ -41,11 +41,11 @@ describe("channels:presence:get-all command", () => {
4141 ) ;
4242 } ) ;
4343
44- standardHelpTests ( "channels:presence:get-all " , import . meta. url ) ;
45- standardArgValidationTests ( "channels:presence:get-all " , import . meta. url , {
44+ standardHelpTests ( "channels:presence:get" , import . meta. url ) ;
45+ standardArgValidationTests ( "channels:presence:get" , import . meta. url , {
4646 requiredArgs : [ "test-channel" ] ,
4747 } ) ;
48- standardFlagTests ( "channels:presence:get-all " , import . meta. url , [
48+ standardFlagTests ( "channels:presence:get" , import . meta. url , [
4949 "--limit" ,
5050 "--json" ,
5151 "--pretty-json" ,
@@ -57,7 +57,7 @@ describe("channels:presence:get-all command", () => {
5757 const channel = mock . channels . _getChannel ( "test-channel" ) ;
5858
5959 const { stdout } = await runCommand (
60- [ "channels:presence:get-all " , "test-channel" ] ,
60+ [ "channels:presence:get" , "test-channel" ] ,
6161 import . meta. url ,
6262 ) ;
6363
@@ -75,7 +75,7 @@ describe("channels:presence:get-all command", () => {
7575 channel . presence . get . mockResolvedValue ( createMockPaginatedResult ( [ ] ) ) ;
7676
7777 const { stderr } = await runCommand (
78- [ "channels:presence:get-all " , "test-channel" ] ,
78+ [ "channels:presence:get" , "test-channel" ] ,
7979 import . meta. url ,
8080 ) ;
8181
@@ -84,7 +84,7 @@ describe("channels:presence:get-all command", () => {
8484
8585 it ( "should output JSON with presenceMembers array" , async ( ) => {
8686 const { stdout } = await runCommand (
87- [ "channels:presence:get-all " , "test-channel" , "--json" ] ,
87+ [ "channels:presence:get" , "test-channel" , "--json" ] ,
8888 import . meta. url ,
8989 ) ;
9090
@@ -104,7 +104,7 @@ describe("channels:presence:get-all command", () => {
104104
105105 it ( "should display member data when present" , async ( ) => {
106106 const { stdout } = await runCommand (
107- [ "channels:presence:get-all " , "test-channel" ] ,
107+ [ "channels:presence:get" , "test-channel" ] ,
108108 import . meta. url ,
109109 ) ;
110110
@@ -118,7 +118,7 @@ describe("channels:presence:get-all command", () => {
118118 const channel = mock . channels . _getChannel ( "test-channel" ) ;
119119
120120 await runCommand (
121- [ "channels:presence:get-all " , "test-channel" , "--limit" , "50" ] ,
121+ [ "channels:presence:get" , "test-channel" , "--limit" , "50" ] ,
122122 import . meta. url ,
123123 ) ;
124124
@@ -144,7 +144,7 @@ describe("channels:presence:get-all command", () => {
144144 ) ;
145145
146146 const { stdout } = await runCommand (
147- [ "channels:presence:get-all " , "test-channel" , "--limit" , "1" , "--json" ] ,
147+ [ "channels:presence:get" , "test-channel" , "--limit" , "1" , "--json" ] ,
148148 import . meta. url ,
149149 ) ;
150150
@@ -162,7 +162,7 @@ describe("channels:presence:get-all command", () => {
162162 channel . presence . get . mockRejectedValue ( new Error ( "API error" ) ) ;
163163
164164 const { error } = await runCommand (
165- [ "channels:presence:get-all " , "test-channel" ] ,
165+ [ "channels:presence:get" , "test-channel" ] ,
166166 import . meta. url ,
167167 ) ;
168168
@@ -180,7 +180,7 @@ describe("channels:presence:get-all command", () => {
180180 ) ;
181181
182182 const { error } = await runCommand (
183- [ "channels:presence:get-all " , "nonexistent-channel" ] ,
183+ [ "channels:presence:get" , "nonexistent-channel" ] ,
184184 import . meta. url ,
185185 ) ;
186186
0 commit comments