Skip to content

Commit

Permalink
feat: Add WebURL field to Bundle model and update tests (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
vorobeyme authored Nov 18, 2024
1 parent 3691329 commit c3cfccd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions crowdin/bundles_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func TestBundlesService_Get(t *testing.T) {
"isMultilingual": false,
"includeProjectSourceLanguage": false,
"labelIds": [13, 27],
"webUrl": "https://crowdin.com/project/test/translations#bundles:100",
"excludeLabelIds": [5, 8],
"createdAt": "2023-09-20T11:11:05+00:00",
"updatedAt": "2023-09-20T12:22:20+00:00"
Expand All @@ -57,6 +58,7 @@ func TestBundlesService_Get(t *testing.T) {
IncludeProjectSourceLanguage: false,
LabelIDs: []int{13, 27},
ExcludeLabelIDs: []int{5, 8},
WebURL: "https://crowdin.com/project/test/translations#bundles:100",
CreatedAt: "2023-09-20T11:11:05+00:00",
UpdatedAt: "2023-09-20T12:22:20+00:00",
}
Expand Down Expand Up @@ -111,6 +113,7 @@ func TestBundlesService_List(t *testing.T) {
"includeProjectSourceLanguage": false,
"labelIds": [13, 27],
"excludeLabelIds": [5, 8],
"webUrl": "https://crowdin.com/project/test/translations#bundles:100",
"createdAt": "2023-09-20T11:11:05+00:00",
"updatedAt": "2023-09-20T12:22:20+00:00"
}
Expand Down Expand Up @@ -139,6 +142,7 @@ func TestBundlesService_List(t *testing.T) {
IncludeProjectSourceLanguage: false,
LabelIDs: []int{13, 27},
ExcludeLabelIDs: []int{5, 8},
WebURL: "https://crowdin.com/project/test/translations#bundles:100",
CreatedAt: "2023-09-20T11:11:05+00:00",
UpdatedAt: "2023-09-20T12:22:20+00:00",
},
Expand Down Expand Up @@ -199,6 +203,7 @@ func TestBundlesService_Add(t *testing.T) {
"includeProjectSourceLanguage": false,
"labelIds": [13, 27],
"excludeLabelIds": [5, 8],
"webUrl": "https://crowdin.com/project/test/translations#bundles:100",
"createdAt": "2023-09-20T11:11:05+00:00",
"updatedAt": "2023-09-20T12:22:20+00:00"
}
Expand Down Expand Up @@ -231,6 +236,7 @@ func TestBundlesService_Add(t *testing.T) {
IncludeProjectSourceLanguage: false,
LabelIDs: []int{13, 27},
ExcludeLabelIDs: []int{5, 8},
WebURL: "https://crowdin.com/project/test/translations#bundles:100",
CreatedAt: "2023-09-20T11:11:05+00:00",
UpdatedAt: "2023-09-20T12:22:20+00:00",
}
Expand Down Expand Up @@ -264,6 +270,7 @@ func TestBundlesService_Edit(t *testing.T) {
"includeProjectSourceLanguage": false,
"labelIds": [13, 27],
"excludeLabelIds": [5, 8],
"webUrl": "https://crowdin.com/project/test/translations#bundles:100",
"createdAt": "2023-09-20T11:11:05+00:00",
"updatedAt": "2023-09-20T12:22:20+00:00"
}
Expand Down Expand Up @@ -292,6 +299,7 @@ func TestBundlesService_Edit(t *testing.T) {
IncludeProjectSourceLanguage: false,
LabelIDs: []int{13, 27},
ExcludeLabelIDs: []int{5, 8},
WebURL: "https://crowdin.com/project/test/translations#bundles:100",
CreatedAt: "2023-09-20T11:11:05+00:00",
UpdatedAt: "2023-09-20T12:22:20+00:00",
}
Expand Down
1 change: 1 addition & 0 deletions crowdin/model/bundles.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ type Bundle struct {
IncludeProjectSourceLanguage bool `json:"includeProjectSourceLanguage"`
LabelIDs []int `json:"labelIds"`
ExcludeLabelIDs []int `json:"excludeLabelIds"`
WebURL string `json:"webUrl"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
}
Expand Down

0 comments on commit c3cfccd

Please sign in to comment.