1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
use std::rc::Rc;

use reqwest::Client;

pub mod append;
pub mod delete;
pub mod retrieve;

pub struct BlocksEndpoint {
    pub(super) client: Rc<Client>,
}

#[cfg(test)]
mod tests {
    use httpmock::prelude::*;

    #[test]
    fn append() {
        let server = MockServer::start();

        let _hello_mock = server.mock(|when, then| {
            when.method(GET).path("/");
            then.status(200).header("content-type", "text/json");
        });

        assert_eq!(3, 3);
    }
}