Skip to content

Commit

Permalink
test object links
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Steven Allen <[email protected]>
  • Loading branch information
Stebalien committed Sep 13, 2018
1 parent 93a7b7f commit 5629b1c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/sharness/t0051-object.sh
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,12 @@ test_object_cmd() {
ipfs object stat $OUTPUT
'

test_expect_success "'ipfs object links' gives the correct results" '
echo "$EMPTY_DIR" 4 foo > expected &&
ipfs object links "$OUTPUT" > actual &&
test_cmp expected actual
'

test_expect_success "'ipfs object patch add-link' should work with paths" '
EMPTY_DIR=$(ipfs object new unixfs-dir) &&
N1=$(ipfs object patch $EMPTY_DIR add-link baz $EMPTY_DIR) &&
Expand Down

0 comments on commit 5629b1c

Please sign in to comment.