Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/run_db_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ for f in supabase/tests/*_test.sql; do
continue
fi
echo "$out"
if grep -q '^not ok' <<<"$out"; then
if grep -qE '^[[:space:]]*not ok' <<<"$out"; then
echo "-- 단언 실패: $f"
fail=1
fi
Expand Down
4 changes: 3 additions & 1 deletion supabase/tests/t11_care_reports_test.sql
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ select is(
'공유 링크 생성'
);
select is(
(select count(*)::int from app.funnel_events where event = 'report_issued'),
(select count(*)::int from app.funnel_events
where event = 'report_issued'
and user_id = (select id from seed where k='bizowner')),
1,
'발행 퍼널 이벤트 기록'
);
Expand Down
Loading