AppFlowy-Cloud/tests/user/sign_out.rs
Nathan.fooo d994b10115
chore: appflowy ai client (#547)
* chore: appflowy ai client

* chore: clippy

* chore: clippy

* chore: fix ci

* chore: disable index search
2024-05-12 09:23:32 +08:00

17 lines
394 B
Rust

use client_api_test::*;
#[tokio::test]
async fn sign_out_but_not_sign_in() {
let c = localhost_client();
let res = c.sign_out().await;
assert!(res.is_err());
}
#[tokio::test]
async fn sign_out_after_sign_in() {
let (c, user) = generate_unique_registered_user_client().await;
c.sign_in_password(&user.email, &user.password)
.await
.unwrap();
c.sign_out().await.unwrap();
}