Skip to content

chore: Match parent name exactly #83

chore: Match parent name exactly

chore: Match parent name exactly #83

GitHub Actions / Test report succeeded Nov 8, 2024 in 1s

10 passed, 0 failed and 0 skipped

Tests passed successfully

✅ report.xml

10 tests were completed in 100ms with 10 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
./up.bats 6✅ 34ms
completion/bash/up.bats 4✅ 66ms

✅ ./up.bats

✅ up should jump to the parent directory when called without arguments
✅ up should jump to the parent directory with the given name
✅ up should jump to the root directory when called with /
✅ up should jump to the first parent directory with the given name
✅ up should jump to the parent directory with the given name containing whitespace
✅ up should jump to the parent directory with the exact given name

✅ completion/bash/up.bats

✅ _up should autocomplete the list of parent directory names when given no arguments
✅ _up should not autocomplete the current directory name when given no arguments
✅ _up should autocomplete the parent directory name
✅ _up should autocomplete the parent directory name containing whitespace