File tree Expand file tree Collapse file tree 4 files changed +10
-5
lines changed
Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -45,9 +45,10 @@ mod tests {
4545 let data = crate :: handlers:: insert:: form:: Entry {
4646 text : "FooBarBaz" . to_string ( ) ,
4747 extension : None ,
48- expires : "0" . to_string ( ) ,
48+ expires : Some ( "0" . to_string ( ) ) ,
4949 password : "" . to_string ( ) ,
5050 title : "" . to_string ( ) ,
51+ burn_after_reading : None ,
5152 } ;
5253
5354 let res = client. post ( "/" ) . form ( & data) . send ( ) . await ?;
Original file line number Diff line number Diff line change @@ -63,9 +63,10 @@ mod tests {
6363 let data = crate :: handlers:: insert:: form:: Entry {
6464 text : "FooBarBaz" . to_string ( ) ,
6565 extension : None ,
66- expires : "0" . to_string ( ) ,
66+ expires : Some ( "0" . to_string ( ) ) ,
6767 password : "" . to_string ( ) ,
6868 title : "" . to_string ( ) ,
69+ burn_after_reading : None ,
6970 } ;
7071
7172 let res = client. post ( "/" ) . form ( & data) . send ( ) . await ?;
Original file line number Diff line number Diff line change @@ -56,9 +56,10 @@ mod tests {
5656 let data = crate :: handlers:: insert:: form:: Entry {
5757 text : "FooBarBaz" . to_string ( ) ,
5858 extension : None ,
59- expires : "burn" . to_string ( ) ,
59+ expires : None ,
6060 password : "" . to_string ( ) ,
6161 title : "" . to_string ( ) ,
62+ burn_after_reading : Some ( String :: from ( "on" ) ) ,
6263 } ;
6364
6465 let res = client. post ( "/" ) . form ( & data) . send ( ) . await ?;
@@ -96,9 +97,10 @@ mod tests {
9697 let data = crate :: handlers:: insert:: form:: Entry {
9798 text : "FooBarBaz" . to_string ( ) ,
9899 extension : None ,
99- expires : "burn" . to_string ( ) ,
100+ expires : None ,
100101 password : password. to_string ( ) ,
101102 title : "" . to_string ( ) ,
103+ burn_after_reading : Some ( String :: from ( "on" ) ) ,
102104 } ;
103105
104106 let res = client. post ( "/" ) . form ( & data) . send ( ) . await ?;
Original file line number Diff line number Diff line change @@ -157,9 +157,10 @@ pub mod form {
157157 let data = super :: Entry {
158158 text : "FooBarBaz" . to_string ( ) ,
159159 extension : Some ( "rs" . to_string ( ) ) ,
160- expires : "0" . to_string ( ) ,
160+ expires : None ,
161161 password : "" . to_string ( ) ,
162162 title : "" . to_string ( ) ,
163+ burn_after_reading : None ,
163164 } ;
164165
165166 let res = client. post ( "/" ) . form ( & data) . send ( ) . await ?;
You can’t perform that action at this time.
0 commit comments