2023-06-19 10:27:32 +02:00
|
|
|
use chorus::types::{RegisterSchema, RegisterSchemaOptions};
|
2023-05-27 22:46:50 +02:00
|
|
|
|
2023-06-11 13:52:31 +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()
|
2023-06-11 13:52:53 +02:00
|
|
|
.unwrap();
|
2023-05-27 22:46:50 +02:00
|
|
|
bundle.instance.register_account(®).await.unwrap();
|
|
|
|
common::teardown(bundle).await;
|
|
|
|
}
|