tests: convert react example test to bats

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi
2021-04-14 17:19:27 -07:00
parent 876ff7d4d6
commit fb2e140b91
3 changed files with 16 additions and 15 deletions

View File

@@ -19,15 +19,12 @@ d=$(cd "$(dirname "${BASH_SOURCE[0]:-$PWD}")" 2>/dev/null 1>&2 && pwd)
. "$d/test-compute.sh"
# shellcheck source=/dev/null
. "$d/test-stdlib.sh"
# shellcheck source=/dev/null
. "$d/test-examples.sh"
test::all(){
local dagger="$1"
test::suite "compute" && test::compute "$dagger"
test::suite "stdlib" && test::stdlib "$dagger"
test::suite "examples" && test::examples "$dagger"
}
test::suite() {