Started adding a record to the database.
This commit is contained in:
parent
ca64717cea
commit
111635a61c
@ -145,6 +145,10 @@ impl Table {
|
||||
None => None,
|
||||
}
|
||||
}
|
||||
|
||||
async fn new_record(&self) -> Record {
|
||||
Record::new()
|
||||
}
|
||||
}
|
||||
|
||||
struct Record {
|
||||
@ -217,6 +221,12 @@ mod tables {
|
||||
"Should return None if field does not exist."
|
||||
);
|
||||
}
|
||||
|
||||
#[async_std::test]
|
||||
async fn get_empty_record() {
|
||||
let tbl = Table::new();
|
||||
tbl.new_record().await;
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
Loading…
Reference in New Issue
Block a user