Skip to content

Commit

Permalink
user -> userID
Browse files Browse the repository at this point in the history
  • Loading branch information
ichiki-mfw committed Jul 16, 2024
1 parent 9f387dd commit 3d57594
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/internal/domain/service/slack_response_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func Test_slackResponseService_postEmailList(t *testing.T) {
emails []*model.SlackUserEmail
cid string
ts string
user string
userID string
}
tests := []struct {
name string
Expand All @@ -76,7 +76,7 @@ func Test_slackResponseService_postEmailList(t *testing.T) {
emails: createEmails(0, 1),
ts: "ts",
cid: "cid",
user: "sampleUser",
userID: "sampleUser",
},
prepare: func(msr *mock_repository.MockSlackRepository) {
gomock.InOrder(
Expand All @@ -92,7 +92,7 @@ func Test_slackResponseService_postEmailList(t *testing.T) {
emails: createEmails(0, lineSizeOfPostEmailList-1),
ts: "ts",
cid: "cid",
user: "sampleUser",
userID: "sampleUser",
},
prepare: func(msr *mock_repository.MockSlackRepository) {
gomock.InOrder(
Expand All @@ -108,7 +108,7 @@ func Test_slackResponseService_postEmailList(t *testing.T) {
emails: createEmails(0, lineSizeOfPostEmailList),
ts: "ts",
cid: "cid",
user: "sampleUser",
userID: "sampleUser",
},
prepare: func(msr *mock_repository.MockSlackRepository) {
gomock.InOrder(
Expand Down Expand Up @@ -136,7 +136,7 @@ func Test_slackResponseService_postEmailList(t *testing.T) {
slackRepository: msr,
errorRepository: mer,
}
if err := s.postEmailList(ctx, tt.args.cid, tt.args.emails, tt.args.ts, tt.args.user); (err != nil) != tt.wantErr {
if err := s.postEmailList(ctx, tt.args.cid, tt.args.emails, tt.args.ts, tt.args.userID); (err != nil) != tt.wantErr {
t.Errorf("postEmailList() error = %v, wantErr %v", err, tt.wantErr)
}
})
Expand Down

0 comments on commit 3d57594

Please sign in to comment.