This commit is contained in:
2024-12-11 11:03:13 +01:00
parent 9642dd8b0f
commit 21ee28f758
18 changed files with 604 additions and 1 deletions

10
test/assertFileContains Executable file
View 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

8
test/assertFileDoesntExist Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
error() { echo -e "\\e[31m✗ $*\\e[0m"; }
if [ -f $1 ]; then
error "File '$1' found"
exit 1
fi

8
test/assertFileExists Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
error() { echo -e "\\e[31m✗ $*\\e[0m"; }
if [ ! -f $1 ]; then
error "File '$1' not found"
exit 1
fi

View File

@ -0,0 +1,2 @@
sonar.projectKey=foo
sonar.sources=src/

View File

@ -0,0 +1,5 @@
function main() {
console.log("Hello World");
}
main();

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@