File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,9 @@ fn operation_name_is_correct() {
103
103
let echo_variables = echo:: Variables {
104
104
msg : Some ( "hi" . to_string ( ) ) ,
105
105
} ;
106
+ let selected_operation_variables = selected_operation:: Variables {
107
+ msg : Some ( "hi" . to_string ( ) ) ,
108
+ } ;
106
109
107
110
let height_variables = heights:: Variables {
108
111
building_id : "12" . to_string ( ) ,
@@ -114,12 +117,19 @@ fn operation_name_is_correct() {
114
117
} ;
115
118
116
119
assert_eq ! ( Echo :: build_query( echo_variables) . operation_name, "Echo" ) ;
120
+
117
121
assert_eq ! (
118
122
Heights :: build_query( height_variables) . operation_name,
119
123
"Heights"
120
124
) ;
125
+
121
126
assert_eq ! (
122
127
Unrelated :: build_query( unrelated_variables) . operation_name,
123
128
"Heights"
124
129
) ;
130
+
131
+ assert_eq ! (
132
+ SelectedOperation :: build_query( selected_operation_variables) . operation_name,
133
+ "Echo"
134
+ ) ;
125
135
}
You can’t perform that action at this time.
0 commit comments