@@ -83,7 +83,7 @@ describe("client", () => {
83
83
it ( "getGroupMemberIds" , ( ) => {
84
84
return client
85
85
. getGroupMemberIds ( "test_group_id" )
86
- . then ( ids =>
86
+ . then ( ( ids : string [ ] ) =>
87
87
deepEqual ( ids , [
88
88
"group-test_group_id-0" ,
89
89
"group-test_group_id-1" ,
@@ -101,7 +101,7 @@ describe("client", () => {
101
101
it ( "getRoomMemberIds" , ( ) => {
102
102
return client
103
103
. getRoomMemberIds ( "test_room_id" )
104
- . then ( ids =>
104
+ . then ( ( ids : string [ ] ) =>
105
105
deepEqual ( ids , [
106
106
"room-test_room_id-0" ,
107
107
"room-test_room_id-1" ,
@@ -119,8 +119,8 @@ describe("client", () => {
119
119
it ( "getMessageContent" , ( ) => {
120
120
return client
121
121
. getMessageContent ( "test_message_id" )
122
- . then ( s => getStreamData ( s ) )
123
- . then ( data => {
122
+ . then ( ( s : NodeJS . ReadableStream ) => getStreamData ( s ) )
123
+ . then ( ( data : string ) => {
124
124
const res = JSON . parse ( data ) ;
125
125
equal ( res . headers . authorization , "Bearer test_channel_access_token" ) ;
126
126
equal ( res . path , "/message/test_message_id/content" ) ;
@@ -129,7 +129,7 @@ describe("client", () => {
129
129
} ) ;
130
130
131
131
it ( "leaveGroup" , ( ) => {
132
- return client . leaveGroup ( "test_group_id" ) . then ( res => {
132
+ return client . leaveGroup ( "test_group_id" ) . then ( ( res : any ) => {
133
133
equal ( res . headers . authorization , "Bearer test_channel_access_token" ) ;
134
134
equal ( res . path , "/group/test_group_id/leave" ) ;
135
135
equal ( res . method , "POST" ) ;
0 commit comments