File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -237,9 +237,9 @@ mod tests {
237237 let consent = get_consent_from_request ( & req) ;
238238 assert ! ( consent. is_some( ) ) ;
239239 let consent = consent. unwrap ( ) ;
240- assert_eq ! ( consent. analytics, true ) ;
241- assert_eq ! ( consent. advertising, false ) ;
242- assert_eq ! ( consent. functional, true ) ;
240+ assert ! ( consent. analytics) ;
241+ assert ! ( ! consent. advertising) ;
242+ assert ! ( consent. functional) ;
243243 }
244244
245245 #[ test]
@@ -300,9 +300,9 @@ mod tests {
300300 // Check response body
301301 let body = response. into_body_str ( ) ;
302302 let returned_consent: GdprConsent = serde_json:: from_str ( & body) . unwrap ( ) ;
303- assert_eq ! ( returned_consent. analytics, true ) ;
304- assert_eq ! ( returned_consent. advertising, true ) ;
305- assert_eq ! ( returned_consent. functional, false ) ;
303+ assert ! ( returned_consent. analytics) ;
304+ assert ! ( returned_consent. advertising) ;
305+ assert ! ( ! returned_consent. functional) ;
306306 }
307307
308308 #[ test]
You can’t perform that action at this time.
0 commit comments