init
This commit is contained in:
10
test/assertFileContains
Executable file
10
test/assertFileContains
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
error() { echo -e "\\e[31m✗ $*\\e[0m"; }
|
||||
|
||||
assertFileExists $1
|
||||
|
||||
if ! grep -q $2 $1; then
|
||||
error "'$2' not found in '$1'"
|
||||
exit 1
|
||||
fi
|
Reference in New Issue
Block a user