提交 8e23482c 作者: Jeromy

Add a test for dag get with a path

License: MIT
Signed-off-by: 's avatarJeromy <why@ipfs.io>
上级 839adbf4
...@@ -59,6 +59,15 @@ test_dag_cmd() { ...@@ -59,6 +59,15 @@ test_dag_cmd() {
echo "{\"data\":\"CAISB2Zvb2JhcgoYBw==\",\"links\":[]}" > dag_get_pb_exp && echo "{\"data\":\"CAISB2Zvb2JhcgoYBw==\",\"links\":[]}" > dag_get_pb_exp &&
test_cmp dag_get_pb_exp dag_get_pb_out test_cmp dag_get_pb_exp dag_get_pb_out
' '
test_expect_success "can call dag get with a path" '
ipfs dag get $IPLDHASH/cats/0 > cat_out
'
test_expect_success "output looks correct" '
echo "{\"data\":\"CAISBGZvbwoYBA==\",\"links\":[]}" > cat_exp &&
test_cmp cat_exp cat_out
'
} }
# should work offline # should work offline
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论