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: add hypertest scenario #8

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

test: add hypertest scenario #8

wants to merge 10 commits into from

Conversation

tpluscode
Copy link
Contributor

@tpluscode tpluscode commented Aug 5, 2019

This PR add and e2e scenario executed with hypertest

It almost could replace the supertest+jest fixture but it's also testing different aspects.

I am considering adding a very broad scenario assertion like

With Each Response {
    Expect Header Link hydra:ApiDocumentation
    Expect Header Access-Control-Allow-Origin "*"
    Expect Header Access-Control-Expose-Headers "*"
}

Checking the media type is not a great idea, because the server could return any RDF format

@tpluscode tpluscode requested review from angelo-v and alien-mcl August 5, 2019 09:26
movies/src/tests/tests.hydra Outdated Show resolved Hide resolved
movies/src/tests/tests.hydra Outdated Show resolved Hide resolved
movies/src/tests/tests.hydra Show resolved Hide resolved
movies/src/tests/tests.hydra Outdated Show resolved Hide resolved
movies/src/tests/tests.hydra Show resolved Hide resolved
movies/package.json Show resolved Hide resolved
@tpluscode
Copy link
Contributor Author

ping @angelo-v @alien-mcl

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