Skip to content

Commit d37505b

Browse files
committed
test: shfmt
My apologies to future `git blame` hunters ♥
1 parent 810c52f commit d37505b

20 files changed

+1725
-1732
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ repos:
2020
- id: git-check # Configure in .gitattributes
2121
- id: shellcheck
2222
- id: shfmt
23-
exclude: ".bats$"
2423
- repo: https://github.com/Lucas-C/pre-commit-hooks
2524
rev: v1.1.7
2625
hooks:

test/bash_it/bash_it.bats

Lines changed: 223 additions & 223 deletions
Large diffs are not rendered by default.

test/completion/aliases.completion.bats

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,28 @@
33
load "${MAIN_BASH_IT_DIR?}/test/test_helper.bash"
44

55
function local_setup_file() {
6-
setup_libs "helpers"
7-
# Load something, anything...
8-
load ../../completion/available/capistrano.completion
6+
setup_libs "helpers"
7+
# Load something, anything...
8+
load ../../completion/available/capistrano.completion
99
}
1010

1111
@test "alias-completion: See that aliases with double quotes and brackets do not break the plugin" {
12-
alias gtest="git log --graph --pretty=format:'%C(bold)%h%Creset%C(magenta)%d%Creset %s %C(yellow)<%an> %C(cyan)(%cr)%Creset' --abbrev-commit --date=relative"
13-
run load "${BASH_IT?}/completion/available/aliases.completion.bash"
12+
alias gtest="git log --graph --pretty=format:'%C(bold)%h%Creset%C(magenta)%d%Creset %s %C(yellow)<%an> %C(cyan)(%cr)%Creset' --abbrev-commit --date=relative"
13+
run load "${BASH_IT?}/completion/available/aliases.completion.bash"
1414

15-
assert_success
15+
assert_success
1616
}
1717

1818
@test "alias-completion: See that aliases with single quotes and brackets do not break the plugin" {
19-
alias gtest='git log --graph --pretty=format:"%C(bold)%h%Creset%C(magenta)%d%Creset %s %C(yellow)<%an> %C(cyan)(%cr)%Creset" --abbrev-commit --date=relative'
20-
run load "${BASH_IT?}/completion/available/aliases.completion.bash"
19+
alias gtest='git log --graph --pretty=format:"%C(bold)%h%Creset%C(magenta)%d%Creset %s %C(yellow)<%an> %C(cyan)(%cr)%Creset" --abbrev-commit --date=relative'
20+
run load "${BASH_IT?}/completion/available/aliases.completion.bash"
2121

22-
assert_success
22+
assert_success
2323
}
2424

2525
@test "alias-completion: See that having aliased rm command does not output unnecessary output" {
26-
alias rm='rm -v'
27-
run load "${BASH_IT?}/completion/available/aliases.completion.bash"
26+
alias rm='rm -v'
27+
run load "${BASH_IT?}/completion/available/aliases.completion.bash"
2828

29-
assert_output ""
29+
assert_output ""
3030
}

0 commit comments

Comments
 (0)