Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: enhance list endpoint e2e test #27

Open
EiffelFly opened this issue Feb 7, 2023 · 0 comments
Open

test: enhance list endpoint e2e test #27

EiffelFly opened this issue Feb 7, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@EiffelFly
Copy link
Owner

Context

Currently, we have this kind of test to test the list endpoint

check(http.request("GET", `${API_HOST}/tags`, undefined, { headers }), {
      "listTag - GET /tags - have two tags, should response 200": (r) =>
        r.status === 200,
      "listTag - GET /tags - have two tags, should response size=2": (r) =>
        r.json().size === "2",
    });

Sadly, it will have chance to get polluted by other testing, we may need to find better way to solve it.

@EiffelFly EiffelFly added enhancement New feature or request good first issue Good for newcomers labels Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant