Compare commits
No commits in common. "23a6fe5c6ed9a6278ea3e1f36e7e67365940882e" and "78f33b8639844f3616f3fd5d3b5cffe3e00325bc" have entirely different histories.
23a6fe5c6e
...
78f33b8639
|
@ -2,7 +2,7 @@
|
|||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
use chrono::NaiveDate;
|
||||
use chrono::{DateTime, Utc};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Debug, Default, Clone, Serialize, Deserialize, PartialEq, Eq)]
|
||||
|
@ -14,8 +14,7 @@ pub struct RegisterSchema {
|
|||
pub email: Option<String>,
|
||||
pub fingerprint: Option<String>,
|
||||
pub invite: Option<String>,
|
||||
/// The user's date of birth, serialized as an ISO8601 date
|
||||
pub date_of_birth: Option<NaiveDate>,
|
||||
pub date_of_birth: Option<DateTime<Utc>>,
|
||||
pub gift_code_sku_id: Option<String>,
|
||||
pub captcha_key: Option<String>,
|
||||
pub promotional_email_opt_in: Option<bool>,
|
||||
|
|
|
@ -10,7 +10,7 @@ use wasm_bindgen_test::*;
|
|||
#[cfg(target_arch = "wasm32")]
|
||||
wasm_bindgen_test_configure!(run_in_browser);
|
||||
|
||||
use chrono::NaiveDate;
|
||||
use chrono::DateTime;
|
||||
|
||||
mod common;
|
||||
|
||||
|
@ -20,7 +20,7 @@ async fn test_registration() {
|
|||
let mut bundle = common::setup().await;
|
||||
let reg = RegisterSchema {
|
||||
username: "Hiiii".into(),
|
||||
date_of_birth: Some(NaiveDate::from_str("2000-01-01").unwrap()),
|
||||
date_of_birth: Some(DateTime::from_str("2000-01-01").unwrap()),
|
||||
consent: true,
|
||||
..Default::default()
|
||||
};
|
||||
|
@ -36,7 +36,7 @@ async fn test_login() {
|
|||
username: "Hiiii".into(),
|
||||
email: Some("testuser1@integrationtesting.xyz".into()),
|
||||
password: Some("Correct-Horse-Battery-Staple1".into()),
|
||||
date_of_birth: Some(NaiveDate::from_str("2000-01-01").unwrap()),
|
||||
date_of_birth: Some(DateTime::from_str("2000-01-01").unwrap()),
|
||||
consent: true,
|
||||
..Default::default()
|
||||
};
|
||||
|
@ -58,7 +58,7 @@ async fn test_wrong_login() {
|
|||
username: "Hiiii".into(),
|
||||
email: Some("testuser2@integrationtesting.xyz".into()),
|
||||
password: Some("Correct-Horse-Battery-Staple1".into()),
|
||||
date_of_birth: Some(NaiveDate::from_str("2000-01-01").unwrap()),
|
||||
date_of_birth: Some(DateTime::from_str("2000-01-01").unwrap()),
|
||||
consent: true,
|
||||
..Default::default()
|
||||
};
|
||||
|
|
|
@ -15,7 +15,7 @@ use chorus::{
|
|||
UrlBundle,
|
||||
};
|
||||
|
||||
use chrono::NaiveDate;
|
||||
use chrono::DateTime;
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[derive(Debug)]
|
||||
|
@ -34,7 +34,7 @@ impl TestBundle {
|
|||
let register_schema = RegisterSchema {
|
||||
username: username.to_string(),
|
||||
consent: true,
|
||||
date_of_birth: Some(NaiveDate::from_str("2000-01-01").unwrap()),
|
||||
date_of_birth: Some(DateTime::from_str("2000-01-01").unwrap()),
|
||||
..Default::default()
|
||||
};
|
||||
self.instance
|
||||
|
@ -64,7 +64,7 @@ pub(crate) async fn setup() -> TestBundle {
|
|||
let reg = RegisterSchema {
|
||||
username: "integrationtestuser".into(),
|
||||
consent: true,
|
||||
date_of_birth: Some(NaiveDate::from_str("2000-01-01").unwrap()),
|
||||
date_of_birth: Some(DateTime::from_str("2000-01-01").unwrap()),
|
||||
..Default::default()
|
||||
};
|
||||
let guild_create_schema = GuildCreateSchema {
|
||||
|
|
Loading…
Reference in New Issue