Skip to content

Commit 82cbd74

Browse files
committed
fix
1 parent 925744e commit 82cbd74

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/components_utils.jl

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ using Base64
1010
@test !res[:base64]
1111

1212
data2 = "test 2 string"
13-
res = dcc_send_string("test_file.csv"; type = "text/csv") do io
14-
write(io, data2)
13+
res = dcc_send_string(data2, "test_file.csv"; type = "text/csv") do io, data
14+
write(io, data)
1515
end
1616
@test res[:content] == data2
1717
@test res[:filename] == "test_file.csv"
@@ -27,9 +27,7 @@ end
2727
@test res[:base64]
2828

2929
data2 = "test 2 string"
30-
res = dcc_send_bytes("test_file.csv"; type = "text/csv") do io
31-
write(io, data2)
32-
end
30+
res = dcc_send_bytes(write, data2, "test_file.csv"; type = "text/csv")
3331
@test res[:content] == Base64.base64encode(data2)
3432
@test res[:filename] == "test_file.csv"
3533
@test res[:type] == "text/csv"

0 commit comments

Comments
 (0)