chorus/tests/auth.rs

17 lines
437 B
Rust
Raw Normal View History

2023-06-19 10:27:32 +02:00
use chorus::types::{RegisterSchema, RegisterSchemaOptions};
2023-05-27 22:46:50 +02:00
mod common;
2023-05-27 22:46:50 +02:00
#[tokio::test]
async fn test_registration() {
let mut bundle = common::setup().await;
2023-06-19 10:27:32 +02:00
let reg = RegisterSchemaOptions {
date_of_birth: Some("2000-01-01".to_string()),
..RegisterSchema::builder("Hiiii", true)
}
.build()
.unwrap();
2023-05-27 22:46:50 +02:00
bundle.instance.register_account(&reg).await.unwrap();
common::teardown(bundle).await;
}