From 6271dbafa80bf750505f63c915315ae8ac10e6c4 Mon Sep 17 00:00:00 2001 From: chenminjian <727180553@qq.com> Date: Wed, 13 Feb 2019 16:59:39 +0800 Subject: [PATCH] test(cmd/mv): add test for files mv cmd License: MIT Signed-off-by: chenminjian <727180553@qq.com> --- test/sharness/t0250-files-api.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/sharness/t0250-files-api.sh b/test/sharness/t0250-files-api.sh index 693ca01e891..c1bed18f1a8 100755 --- a/test/sharness/t0250-files-api.sh +++ b/test/sharness/t0250-files-api.sh @@ -524,6 +524,14 @@ test_files_api() { ipfs files mv /cats/this/is /cats/ ' + test_expect_success "can mv dir and dest dir is / $EXTRA" ' + ipfs files mv /cats/is / + ' + + test_expect_success "can mv dir and dest dir path has no trailing slash $EXTRA" ' + ipfs files mv /is /cats + ' + test_expect_success "mv worked $EXTRA" ' verify_dir_contents /cats file1 ipfs this is walrus && verify_dir_contents /cats/this