@cryptotaxi247 / kubo / commits / 8e23482c7

Add a test for dag get with a path

License: MIT Signed-off-by: Jeromy <why@ipfs.io>

Jeromy committed Dec 17, 2016 at 13:36 UTC 8e23482c7e56dab193339879268c4860b27842d1
1 file changed +9
test/sharness/t0053-dag.sh
+9
@@ -59,6 +59,15 @@ test_dag_cmd() {
59 echo "{\"data\":\"CAISB2Zvb2JhcgoYBw==\",\"links\":[]}" > dag_get_pb_exp &&
60 test_cmp dag_get_pb_exp dag_get_pb_out
61 '
62 +
63 + test_expect_success "can call dag get with a path" '
64 + ipfs dag get $IPLDHASH/cats/0 > cat_out
65 + '
66 +
67 + test_expect_success "output looks correct" '
68 + echo "{\"data\":\"CAISBGZvbwoYBA==\",\"links\":[]}" > cat_exp &&
69 + test_cmp cat_exp cat_out
70 + '
71 }
72
73 # should work offline