check the whole profile
@@ -188,8 +188,9 @@ fn actionctx_login() {
)))),
);
assert_eq!(
- runtime.app.read().unwrap().ctx.profile.auth,
- Some(Auth {
+ runtime.app.read().unwrap().ctx.profile,
+ Profile {
+ auth: Some(Auth {
key: "auth_key".to_owned(),
user: User {
id: "user_id".to_owned(),
@@ -200,6 +201,9 @@ fn actionctx_login() {
date_registered: Env::now(),
},
}),
+ addons: vec![],
+ ..Default::default()
+ },
"profile updated successfully in memory"
);
assert!(
@@ -337,8 +341,9 @@ fn actionctx_signup() {
)))),
);
assert_eq!(
- runtime.app.read().unwrap().ctx.profile.auth,
- Some(Auth {
+ runtime.app.read().unwrap().ctx.profile,
+ Profile {
+ auth: Some(Auth {
key: "auth_key".to_owned(),
user: User {
id: "user_id".to_owned(),
@@ -349,6 +354,9 @@ fn actionctx_signup() {
date_registered: Env::now(),
},
}),
+ addons: vec![],
+ ..Default::default()
+ },
"profile updated successfully in memory"
);
assert!(
