diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-07-25 23:57:33 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-07-25 23:57:33 -0700 |
commit | c58974c0a3aa22081717d6fce6580772e4ba2fa9 (patch) | |
tree | ce19b9c21cf4dc472e96949dc526ecfdfce72414 | |
parent | 69cb39f2c5d4012abff23af5b0e1aba5f9f899df (diff) | |
download | fatcat-c58974c0a3aa22081717d6fce6580772e4ba2fa9.tar.gz fatcat-c58974c0a3aa22081717d6fce6580772e4ba2fa9.zip |
quick test for expand behavior
-rw-r--r-- | rust/tests/test_api_server.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/rust/tests/test_api_server.rs b/rust/tests/test_api_server.rs index ca2d8df2..ffae8502 100644 --- a/rust/tests/test_api_server.rs +++ b/rust/tests/test_api_server.rs @@ -98,6 +98,17 @@ fn test_entity_gets() { Some("bigger example"), ); + // expand keyword + check_response( + request::get( + "http://localhost:9411/v0/release/aaaaaaaaaaaaarceaaaaaaaaai?expand=all", + headers.clone(), + &router, + ), + status::Ok, + Some("MySpace Blog"), + ); + check_response( request::get( "http://localhost:9411/v0/work/aaaaaaaaaaaaavkvaaaaaaaaai", |