Skip to content

fix: incorrect status assertion in User Info test and document environment selection (#2) (#3)#23

Open
AbdullahShafqat-OG wants to merge 1 commit into
usebruno:mainfrom
AbdullahShafqat-OG:test-status-and-env-docs
Open

fix: incorrect status assertion in User Info test and document environment selection (#2) (#3)#23
AbdullahShafqat-OG wants to merge 1 commit into
usebruno:mainfrom
AbdullahShafqat-OG:test-status-and-env-docs

Conversation

@AbdullahShafqat-OG
Copy link
Copy Markdown

Fixes two issues in the Github REST API collection.

The User Info request had a test labelled "status must be 200" but asserted res.status against 201, causing the test to fail against a valid GitHub response. The assertion now correctly checks for 200.

The readme also did not mention that the Github environment must be selected for {{baseUrl}} to resolve, leading to broken requests on first run. The usage section now instructs users to select the Github environment in Bruno, and adds a CLI section showing how to pass it explicitly:

bru run --env Github

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