Skip to content

Commit

Permalink
feat(#9): touch adjust
Browse files Browse the repository at this point in the history
  • Loading branch information
h1alexbel committed Jun 5, 2024
1 parent b9c5748 commit 72e0472
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/xml/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,15 @@ pub fn touch_storage() {
mod tests {
use std::fs;
use std::path::Path;

use crate::xml::storage::init;
use crate::xml::storage::touch_storage;

fn clean() {
fs::remove_file("fakehub.xml").unwrap();
}

#[test]
fn creates_xml_storage() {
init();
touch_storage();
let storage = "fakehub.xml";
let exists = Path::new(storage).exists();
assert!(exists, "storage file '{storage}' was not created, but should");
Expand Down

0 comments on commit 72e0472

Please sign in to comment.