Skip to content

fix: fix broken bats test - #148

Merged
ninoseki merged 1 commit into
mainfrom
fix-broken-bats-tests
Sep 28, 2026
Merged

ninoseki merged 1 commit into
mainfrom
fix-broken-bats-tests

Conversation

@ninoseki

Copy link
Copy Markdown
Collaborator

Fix broken Bats test cases

Comment thread test/pro/incident.bats

@test "create, get, states, update, close and restart" {
incident_id="$(./dist/urlscan pro incident create -o "example.com" --expire-at "$expire_at" | jq -r ".incident._id")"
incident_id="$(./dist/urlscan pro incident create -o "example.com" --expire-after "$expire_after" | jq -r ".incident._id")"

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should use expire-after after #133

Comment thread test/version.bats
@test "version" {
run ./dist/urlscan version
assert_output "urlscan-cli $VERSION"
assert_line "urlscan-cli $VERSION"

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assert_output is exact match. So should use partial match (assert_line) after #117.

@ninoseki
ninoseki requested a review from cdnsyseng September 17, 2026 00:59
@ninoseki
ninoseki merged commit f0f0006 into main Sep 28, 2026
4 checks passed
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.

2 participants