summaryrefslogtreecommitdiff
path: root/tests/pkgtoolkit_funcs.rs
diff options
context:
space:
mode:
authorNamilskyy <alive6863@gmail.com>2025-12-01 15:14:58 +0300
committerNamilskyy <alive6863@gmail.com>2025-12-01 15:14:58 +0300
commit84b5aa13a0e6e5c8c9884ae3f973e560e7d4c59b (patch)
tree5e87585744a8e9e8063ba5e755e17771e5a280d4 /tests/pkgtoolkit_funcs.rs
parent4262072d0d79449da6b94fb8863064c3fe7998d5 (diff)
Fixed test logic and formatted code
Diffstat (limited to 'tests/pkgtoolkit_funcs.rs')
-rw-r--r--tests/pkgtoolkit_funcs.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/pkgtoolkit_funcs.rs b/tests/pkgtoolkit_funcs.rs
index 3406844..9c5113e 100644
--- a/tests/pkgtoolkit_funcs.rs
+++ b/tests/pkgtoolkit_funcs.rs
@@ -1,5 +1,5 @@
-use mesk::pkgtoolkit::pkgtools::{Archs, Package};
use mesk::cfg::config::Config;
+use mesk::pkgtoolkit::pkgtools::{Archs, Package};
mod shared;
use shared::create_test_config;
@@ -42,8 +42,8 @@ mod package_tests {
Package::extract_archive(archive_path.to_str().unwrap())?;
let config = Config::parse().unwrap();
- let extracted_file_path = std::path::Path::new(&config.paths.cache_dir)
- .join("extracted_test_file.txt");
+ let extracted_file_path =
+ std::path::Path::new(&config.paths.cache_dir).join("extracted_test_file.txt");
assert!(extracted_file_path.exists());
let content = fs::read_to_string(extracted_file_path)?;
assert_eq!(content, test_file_content);