8
8
)
9
9
10
10
func TestCreateMessage (t * testing.T ) {
11
- mbtest .WillReturnTestdata (t , "conversationMessageObject .json" , http .StatusCreated )
11
+ mbtest .WillReturnTestdata (t , "messageObject .json" , http .StatusCreated )
12
12
client := mbtest .Client (t )
13
13
14
14
message , err := CreateMessage (client , "convid" , & MessageCreateRequest {
@@ -27,11 +27,11 @@ func TestCreateMessage(t *testing.T) {
27
27
}
28
28
29
29
mbtest .AssertEndpointCalled (t , http .MethodPost , "/v1/conversations/convid/messages" )
30
- mbtest .AssertTestdata (t , "conversationCreateMessageRequest .json" , mbtest .Request .Body )
30
+ mbtest .AssertTestdata (t , "messageCreateRequest .json" , mbtest .Request .Body )
31
31
}
32
32
33
33
func TestListMessages (t * testing.T ) {
34
- mbtest .WillReturnTestdata (t , "conversationListMessageObject .json" , http .StatusOK )
34
+ mbtest .WillReturnTestdata (t , "messageListObject .json" , http .StatusOK )
35
35
client := mbtest .Client (t )
36
36
37
37
messageList , err := ListMessages (client , "convid" , DefaultListOptions )
@@ -51,7 +51,7 @@ func TestListMessages(t *testing.T) {
51
51
}
52
52
53
53
func TestReadMessage (t * testing.T ) {
54
- mbtest .WillReturnTestdata (t , "conversationMessageObject .json" , http .StatusOK )
54
+ mbtest .WillReturnTestdata (t , "messageObject .json" , http .StatusOK )
55
55
client := mbtest .Client (t )
56
56
57
57
message , err := ReadMessage (client , "mesid" )
0 commit comments