@cryptotaxi247 / kubo / commits / 5629b1ce8

test `object links`

License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>

Steven Allen committed Sep 13, 2018 at 11:10 UTC 5629b1ce88073524c2f3fc5f930c6c4b8b4151d8
1 file changed +6
test/sharness/t0051-object.sh
+6
@@ -223,6 +223,12 @@ test_object_cmd() {
223 ipfs object stat $OUTPUT
224 '
225
226 + test_expect_success "'ipfs object links' gives the correct results" '
227 + echo "$EMPTY_DIR" 4 foo > expected &&
228 + ipfs object links "$OUTPUT" > actual &&
229 + test_cmp expected actual
230 + '
231 +
232 test_expect_success "'ipfs object patch add-link' should work with paths" '
233 EMPTY_DIR=$(ipfs object new unixfs-dir) &&
234 N1=$(ipfs object patch $EMPTY_DIR add-link baz $EMPTY_DIR) &&