mirror of
https://github.com/sstephenson/bats.git
synced 2026-02-26 17:58:09 +01:00
Supporting DOS line endings in BATS tests
This commit is contained in:
@@ -103,3 +103,8 @@ fixtures bats
|
||||
[ $status -eq 0 ]
|
||||
[ "${lines[1]}" = "ok 1 dash-e on beginning of line" ]
|
||||
}
|
||||
|
||||
@test "dos line endings are stripped before testing" {
|
||||
run bats "$FIXTURE_ROOT/dos_line.bats"
|
||||
[ $status -eq 0 ]
|
||||
}
|
||||
|
||||
3
test/fixtures/bats/dos_line.bats
vendored
Normal file
3
test/fixtures/bats/dos_line.bats
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
@test "foo" {
|
||||
|
||||
echo "foo"
|
||||
Reference in New Issue
Block a user