style(connection): format sidebar loading config test
This commit is contained in:
1 parent
5ba0d435f0
commit
284173c660
1 file changed
+1
-5
@@ -2784,11 +2784,7 @@ mod tests {
|
|||||||
value["sidebar_auto_load_all_tables"] = serde_json::json!(true);
|
value["sidebar_auto_load_all_tables"] = serde_json::json!(true);
|
||||||
let configured: ConnectionConfig = serde_json::from_value(value).unwrap();
|
let configured: ConnectionConfig = serde_json::from_value(value).unwrap();
|
||||||
assert!(configured.sidebar_auto_load_all_tables);
|
assert!(configured.sidebar_auto_load_all_tables);
|
||||||
assert!(
|
assert!(serde_json::to_value(configured).unwrap()["sidebar_auto_load_all_tables"].as_bool().unwrap());
|
||||||
serde_json::to_value(configured).unwrap()["sidebar_auto_load_all_tables"]
|
|
||||||
.as_bool()
|
|
||||||
.unwrap()
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn mysql_config(username: &str, password: &str, database: Option<&str>) -> ConnectionConfig {
|
fn mysql_config(username: &str, password: &str, database: Option<&str>) -> ConnectionConfig {
|
||||||
|
|||||||
Reference in new issue
Block a user