Skip to content
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.

Commit

Permalink
can't fail the test if the test doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
raisfeld-ori committed Mar 31, 2024
1 parent f79dcbe commit cce0af3
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions src-tauri/src/fs/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,18 +170,4 @@ fn test_fs() {
dir.files.push(DirectoryItems::File(file));
assert!(mk(name, password, String::from("file")).is_ok());
assert_eq!(unsafe{&FS.current_dir}, &dir);
}
#[test]
fn test_upload(){
unsafe{FS.init_fs();}
let name = "some";
let password = "thing";
let data = b"helloworlddigmas";
let mut dir = Directory::new(String::from("dir"));
let file = File::new(name, password, String::from("test.txt"), &dir).unwrap();
file.save(name, password, data).unwrap();
dir.files.push(DirectoryItems::File(file.clone()));
file.delete(name, password).unwrap();


}
}

0 comments on commit cce0af3

Please sign in to comment.