5
5
"testing"
6
6
"time"
7
7
8
- "github.com/messagebird/go-rest-api/mbtest"
8
+ "github.com/messagebird/go-rest-api/internal/ mbtest"
9
9
)
10
10
11
11
func TestMain (m * testing.M ) {
@@ -22,7 +22,7 @@ func TestCreate(t *testing.T) {
22
22
}
23
23
24
24
mbtest .AssertEndpointCalled (t , http .MethodPost , "/groups" )
25
- mbtest .AssertTestdata (t , "groupRequestCreateObject.json" , messagebirdtest .Request .Body )
25
+ mbtest .AssertTestdata (t , "groupRequestCreateObject.json" , mbtest .Request .Body )
26
26
27
27
if group .Name != "Friends" {
28
28
t .Fatalf ("expected Friends, got %s" , group .Name )
@@ -158,7 +158,7 @@ func TestUpdate(t *testing.T) {
158
158
}
159
159
160
160
mbtest .AssertEndpointCalled (t , http .MethodPatch , "/groups/group-id" )
161
- mbtest .AssertTestdata (t , "groupRequestUpdateObject.json" , messagebirdtest .Request .Body )
161
+ mbtest .AssertTestdata (t , "groupRequestUpdateObject.json" , mbtest .Request .Body )
162
162
}
163
163
164
164
func TestAddContacts (t * testing.T ) {
@@ -172,7 +172,7 @@ func TestAddContacts(t *testing.T) {
172
172
mbtest .AssertEndpointCalled (t , http .MethodGet , "/groups/group-id/contacts" )
173
173
174
174
if mbtest .Request .URL .RawQuery != "_method=PUT&ids[]=first-contact-id&ids[]=second-contact-id" {
175
- t .Fatalf ("expected _method=PUT&ids[]=first-contact-id&ids[]=second-contact-id, got %s" , messagebirdtest .Request .URL .RawQuery )
175
+ t .Fatalf ("expected _method=PUT&ids[]=first-contact-id&ids[]=second-contact-id, got %s" , mbtest .Request .URL .RawQuery )
176
176
}
177
177
}
178
178
0 commit comments