summaryrefslogtreecommitdiffstats
path: root/rust/tests
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-07-25 23:57:33 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-07-25 23:57:33 -0700
commitc58974c0a3aa22081717d6fce6580772e4ba2fa9 (patch)
treece19b9c21cf4dc472e96949dc526ecfdfce72414 /rust/tests
parent69cb39f2c5d4012abff23af5b0e1aba5f9f899df (diff)
downloadfatcat-c58974c0a3aa22081717d6fce6580772e4ba2fa9.tar.gz
fatcat-c58974c0a3aa22081717d6fce6580772e4ba2fa9.zip
quick test for expand behavior
Diffstat (limited to 'rust/tests')
-rw-r--r--rust/tests/test_api_server.rs11
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",