File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed
packages/schema-derive/src Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -225,6 +225,25 @@ mod tests {
225
225
226
226
#[ test]
227
227
fn api_object_minimal ( ) {
228
+ assert_eq ! (
229
+ generate_api_impl( & parse_quote! { } ) ,
230
+ parse_quote! {
231
+ :: cosmwasm_schema:: Api {
232
+ contract_name: :: std:: env!( "CARGO_PKG_NAME" ) . to_string( ) ,
233
+ contract_version: :: std:: env!( "CARGO_PKG_VERSION" ) . to_string( ) ,
234
+ instantiate: None ,
235
+ execute: None ,
236
+ query: None ,
237
+ migrate: None ,
238
+ sudo: None ,
239
+ responses: None ,
240
+ }
241
+ }
242
+ ) ;
243
+ }
244
+
245
+ #[ test]
246
+ fn api_object_instantiate_only ( ) {
228
247
assert_eq ! (
229
248
generate_api_impl( & parse_quote! {
230
249
instantiate: InstantiateMsg ,
@@ -245,7 +264,7 @@ mod tests {
245
264
}
246
265
247
266
#[ test]
248
- fn api_object_name_vesion_override ( ) {
267
+ fn api_object_name_version_override ( ) {
249
268
assert_eq ! (
250
269
generate_api_impl( & parse_quote! {
251
270
name: "foo" ,
You can’t perform that action at this time.
0 commit comments