Skip to content

Commit bbf40f2

Browse files
Added another nested dict for testing/demo purposes.
1 parent a9a75e2 commit bbf40f2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/runtests.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ attachment = Dict("attachments" => [Dict("fallback" => "Required plain-text summ
1111
"author_icon" => "http://flickr.com/icons/bobby.jpg",
1212
"title" => "Slack API Documentation",
1313
"title_link" => "https://api.slack.com/",
14-
"text" => "Optional text that appears within the attachment"
14+
"text" => "Optional text that appears within the attachment",
15+
"fields" => [Dict("title" => "Priority",
16+
"value" => "High",
17+
"short" => false
18+
)]
1519
)])
1620

1721
response = sendtoslack(data, endpoint)

0 commit comments

Comments
 (0)