* replace interface{} with any
Этот коммит содержится в:
Ibrahim Serdar Acikgoz
2022-07-05 09:46:50 +03:00
коммит произвёл GitHub
родитель b45ff0be5d
Коммит 717a4d04a9
258 изменённых файлов: 1286 добавлений и 1286 удалений

Просмотреть файл

@@ -65,7 +65,7 @@ func TestPostActionCookies(t *testing.T) {
Type: model.PostActionTypeButton,
Integration: &model.PostActionIntegration{
URL: server.URL,
Context: map[string]interface{}{
Context: map[string]any{
"test-key": "test-value",
},
},
@@ -80,7 +80,7 @@ func TestPostActionCookies(t *testing.T) {
Type: model.PostActionTypeButton,
Integration: &model.PostActionIntegration{
URL: server.URL,
Context: map[string]interface{}{
Context: map[string]any{
"test-key": "test-value",
},
},
@@ -95,7 +95,7 @@ func TestPostActionCookies(t *testing.T) {
Type: model.PostActionTypeButton,
Integration: &model.PostActionIntegration{
URL: server.URL,
Context: map[string]interface{}{
Context: map[string]any{
"test-key": "test-value",
},
},
@@ -112,7 +112,7 @@ func TestPostActionCookies(t *testing.T) {
ChannelId: th.BasicChannel.Id,
CreateAt: model.GetMillis(),
UpdateAt: model.GetMillis(),
Props: map[string]interface{}{
Props: map[string]any{
"attachments": []*model.SlackAttachment{
{
Title: "some-title",
@@ -226,7 +226,7 @@ func TestSubmitDialog(t *testing.T) {
UserId: th.BasicUser.Id,
ChannelId: th.BasicChannel.Id,
TeamId: th.BasicTeam.Id,
Submission: map[string]interface{}{"somename": "somevalue"},
Submission: map[string]any{"somename": "somevalue"},
}
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {