Formatting fixes
The result of `cargo fmt`.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
use firefly_client::client::FireflyClient;
|
||||
use firefly_client::models::{TransactionStore, TransactionSplitStore};
|
||||
use wiremock::matchers::{method, path, header};
|
||||
use wiremock::{Mock, MockServer, ResponseTemplate};
|
||||
use firefly_client::models::{TransactionSplitStore, TransactionStore};
|
||||
use std::fs;
|
||||
use wiremock::matchers::{header, method, path};
|
||||
use wiremock::{Mock, MockServer, ResponseTemplate};
|
||||
|
||||
#[tokio::test]
|
||||
async fn test_search_accounts() {
|
||||
@@ -21,7 +21,10 @@ async fn test_search_accounts() {
|
||||
|
||||
assert_eq!(accounts.data.len(), 1);
|
||||
assert_eq!(accounts.data[0].attributes.name, "Checking Account");
|
||||
assert_eq!(accounts.data[0].attributes.iban.as_deref(), Some("NL01BANK0123456789"));
|
||||
assert_eq!(
|
||||
accounts.data[0].attributes.iban.as_deref(),
|
||||
Some("NL01BANK0123456789")
|
||||
);
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
@@ -36,7 +39,7 @@ async fn test_store_transaction() {
|
||||
.await;
|
||||
|
||||
let client = FireflyClient::new(&mock_server.uri(), "my-token").unwrap();
|
||||
|
||||
|
||||
let tx = TransactionStore {
|
||||
transactions: vec![TransactionSplitStore {
|
||||
transaction_type: "withdrawal".to_string(),
|
||||
|
||||
Reference in New Issue
Block a user