summaryrefslogtreecommitdiffstats
path: root/tests/post_text_blob.rs
blob: 2f1fa74f37de3e43c52b9aa54bc5837e5d7e59c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use distrox::client::Client;
use distrox::config::Config;
use distrox::ipfs_client::IpfsClient;

#[test]
fn test_post_text_blob() {
    let ipfs  = IpfsClient::from_str("http://localhost:5001").unwrap();
    let config = Config::default();
    let client = Client::new(ifps, config);

    let cid = Client.post_text_blob(String::from("text"));
    assert!(cid.is_ok());
}