mirror of
https://github.com/harttle/liquidjs.git
synced 2026-10-03 00:55:13 -07:00
test: remove dead throwingTag setup and duplicate throw stub
for.spec kept throwingTag registration after #713 removed its test. Reuse ThrowingTag in liquid.spec instead of IntendedRenderErrorTag. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -7,13 +7,14 @@ while ! grep -q "Express running" "$LOG_FILE"; do
|
|||||||
if ! kill -0 $SERVER_PID; then
|
if ! kill -0 $SERVER_PID; then
|
||||||
echo "Server exited unexpectedly."
|
echo "Server exited unexpectedly."
|
||||||
cat $LOG_FILE
|
cat $LOG_FILE
|
||||||
return 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
curl http://127.0.0.1:3000 | grep -q 'Welcome to LiquidJS'
|
curl http://127.0.0.1:3000 | grep -q 'Welcome to LiquidJS'
|
||||||
RESULT=$?
|
RESULT=$?
|
||||||
killall node
|
kill $SERVER_PID 2>/dev/null || true
|
||||||
|
wait $SERVER_PID 2>/dev/null || true
|
||||||
rm $LOG_FILE
|
rm $LOG_FILE
|
||||||
if [ $RESULT != 0 ]; then
|
if [ $RESULT != 0 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
+2
-2
@@ -14,9 +14,9 @@ for demo in $(ls demo); do
|
|||||||
npm link liquidjs
|
npm link liquidjs
|
||||||
|
|
||||||
if npm test; then
|
if npm test; then
|
||||||
echo [success] demo/webpack
|
echo "[success] demo/$demo"
|
||||||
else
|
else
|
||||||
echo [fail] demo/webpack
|
echo "[fail] demo/$demo"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
cd -
|
cd -
|
||||||
|
|||||||
Reference in New Issue
Block a user