Skip to content

Commit

Permalink
fix(files): add test
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
  • Loading branch information
overbool committed Oct 16, 2018
1 parent e9d6c06 commit 89574c8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/sharness/t0250-files-api.sh
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,12 @@ test_files_api() {
verify_dir_contents /cats/this/is/a/dir
'

test_expect_success "dir has correct name" '
echo "this/" > ls_dir_expected &&
ipfs files ls -l /cats | grep this/ | awk '\''{print $1}'\'' > ls_dir_actual &&
test_cmp ls_dir_expected ls_dir_actual
'

test_expect_success "can copy file into new dir $EXTRA" '
ipfs files cp /ipfs/$FILE3 /cats/this/is/a/dir/file3
'
Expand Down

0 comments on commit 89574c8

Please # to comment.