Skip to content

Commit

Permalink
Fail a test
Browse files Browse the repository at this point in the history
  • Loading branch information
maor-rozenfeld committed Mar 25, 2024
1 parent 994eab8 commit 6a92f30
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,9 @@ TITLE_REGEX="^(?!\\S+ing\\s)(?!\\S+ed\\s)" \
ERROR_MESSAGE="Must be lower case" \
./lint.sh; then echo "Pass"; else echo "Failed" && exit 1; fi

if TITLE="Fix a thing" \
if ! TITLE="Fix a thing" \
TITLE_REGEX="^(?!\\S+ing\\s)(?!\\S+ed\\s)" \
ERROR_MESSAGE="Must be lower case" \
./lint.sh; then echo "Pass"; else echo "Failed" && exit 1; fi

if ! BODY="Fix a thing" \
BODY_REGEX="^(?!\\S+ing\\s)(?!\\S+ed\\s)" \
ERROR_MESSAGE="Must be lower case" \
./lint.sh; then echo "Pass"; else echo "Failed" && exit 1; fi

echo All tests passed

0 comments on commit 6a92f30

Please sign in to comment.