We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 925744e commit 82cbd74Copy full SHA for 82cbd74
test/components_utils.jl
@@ -10,8 +10,8 @@ using Base64
10
@test !res[:base64]
11
12
data2 = "test 2 string"
13
- res = dcc_send_string("test_file.csv"; type = "text/csv") do io
14
- write(io, data2)
+ res = dcc_send_string(data2, "test_file.csv"; type = "text/csv") do io, data
+ write(io, data)
15
end
16
@test res[:content] == data2
17
@test res[:filename] == "test_file.csv"
@@ -27,9 +27,7 @@ end
27
@test res[:base64]
28
29
30
- res = dcc_send_bytes("test_file.csv"; type = "text/csv") do io
31
32
- end
+ res = dcc_send_bytes(write, data2, "test_file.csv"; type = "text/csv")
33
@test res[:content] == Base64.base64encode(data2)
34
35
@test res[:type] == "text/csv"
0 commit comments