fix: Remove -it from BATS testing

Interactive shell doesn't seem to work on Actions
This commit is contained in:
Nick Schonning 2020-02-20 00:22:14 -05:00
parent 867a567145
commit a84ff50223
1 changed files with 3 additions and 3 deletions

View File

@ -1,17 +1,17 @@
#!/usr/bin/env bats
@test "Test for node and version" {
run docker run --rm -it node:"$full_tag" node -e "process.stdout.write(process.versions.node)"
run docker run --rm node:"$full_tag" node -e "process.stdout.write(process.versions.node)"
[ "$status" -eq 0 ]
[ "$output" == "${full_version}" ]
}
@test "Test for npm" {
run docker run --rm -it node:"$full_tag" npm --version
run docker run --rm node:"$full_tag" npm --version
[ "$status" -eq 0 ]
}
@test "Test for yarn" {
run docker run --rm -it node:"$full_tag" yarn --version
run docker run --rm node:"$full_tag" yarn --version
[ "$status" -eq 0 ]
}