Skip to content

test: fix unit test assertions - #38

Merged
zheng-weihao merged 1 commit into
orbcli:mainfrom
zheng-weihao:fix/bats-assertion-form
Aug 14, 2026
Merged

test: fix unit test assertions#38
zheng-weihao merged 1 commit into
orbcli:mainfrom
zheng-weihao:fix/bats-assertion-form

Conversation

@zheng-weihao

@zheng-weihao zheng-weihao commented Aug 14, 2026

Copy link
Copy Markdown
Member

What changed

UT fix: route the suite's content/regex assertions through the shared helpers in tests/test_helper/common.bash (assert_contains / refute_contains, plus a new assert_matches), and add tests/27_assertion_form.bats, a lint that guards the assertion form.

Checklist

  • shellcheck orbit.sh install.sh passes
  • bats tests/ passes
  • New features include tests
  • Documentation updated (if user-facing behavior changed) — none (test-only change)

Signed-off-by: Zheng Weihao <zheng-weihao@outlook.com>
@zheng-weihao
zheng-weihao merged commit 79de8f9 into orbcli:main Aug 14, 2026
2 checks passed
@zheng-weihao
zheng-weihao deleted the fix/bats-assertion-form branch August 24, 2026 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant