Skip to content

Commit

Permalink
Add JSON output test to testbench
Browse files Browse the repository at this point in the history
  • Loading branch information
bstee615 committed Oct 3, 2022
1 parent 94092aa commit 455b39c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions testbench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ if [ $LINES -ne 5 ]; then
echo "Error in simple tasks."
exit 1
fi
if command -v jq > /dev/null
then
LINES_JSON=`./ts -M json | jq '. | length'`
if [ $LINES_JSON -ne 5 ]; then
echo "Error in exporting JSON from simple tasks."
exit 1
fi
fi

./ts -K

Expand Down

0 comments on commit 455b39c

Please sign in to comment.