git-check-assertions/test/git-check-assertions.bats
2026-03-03 07:16:29 +01:00

19 lines
416 B
Bash
Executable file

#!/usr/bin/env bats
setup() {
load 'test_helper/bats-support/load'
load 'test_helper/bats-assert/load'
DIR="$(cd "$(dirname "$BATS_TEST_FILENAME")" >/dev/null 2>&1 && pwd)"
PATH="$DIR/../bin:$PATH"
git init -b main
git config user.email "john.doe@example.com"
git config user.name "John Doe"
}
@test "can run" {
git commit --allow-empty -m "Initial"
run git-check-assertions
assert_success
}