git-check-assertions/test/git-check-assertions.bats

20 lines
435 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
git config user.email "john.doe@example.com"
git config user.name "John Doe"
git checkout -b main
}
@test "can run" {
git commit --allow-empty -m "Initial"
run git-check-assertions
assert_success
}