test(cmd/mv): add test for files mv cmd
License: MIT Signed-off-by: chenminjian <727180553@qq.com>
chenminjian committed
Feb 13, 2019 at 16:59 UTC
6271dbafa80bf750505f63c915315ae8ac10e6c4
1 file changed
+8
test/sharness/t0250-files-api.sh
+8
@@ -524,6 +524,14 @@ test_files_api() {
524
ipfs files mv /cats/this/is /cats/
525
'
526
527
+ test_expect_success "can mv dir and dest dir is / $EXTRA" '
528
+ ipfs files mv /cats/is /
529
+ '
530
+
531
+ test_expect_success "can mv dir and dest dir path has no trailing slash $EXTRA" '
532
+ ipfs files mv /is /cats
533
+ '
534
+
535
test_expect_success "mv worked $EXTRA" '
536
verify_dir_contents /cats file1 ipfs this is walrus &&
537
verify_dir_contents /cats/this