diff --git a/src/morethantext/mod.rs b/src/morethantext/mod.rs index aa211a3..a6879f3 100644 --- a/src/morethantext/mod.rs +++ b/src/morethantext/mod.rs @@ -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)]