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

Use endpoints class #60

Merged
merged 10 commits into from
Jan 10, 2024
Merged

Use endpoints class #60

merged 10 commits into from
Jan 10, 2024

Conversation

aljones15
Copy link
Contributor

@aljones15 aljones15 commented Jan 8, 2024

This is clean up: it removes tons of unneeded stuff from the actual test suite and instead creates an Endpoints class that really helps make the suite cleaner and makes it almost more inline with the rest of the suites. It also moves the challenge generation to data-generator.js further decluttering the test file.

@aljones15 aljones15 self-assigned this Jan 8, 2024
@aljones15 aljones15 marked this pull request as ready for review January 8, 2024 15:42
Copy link
Member

@BigBlueHat BigBlueHat left a comment

Choose a reason for hiding this comment

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

Tiny tweak. Otherwise looks good!

tests/TestEndpoints.js Outdated Show resolved Hide resolved
@aljones15
Copy link
Contributor Author

@BigBlueHat good catch can't believe I didn't see that.

@aljones15 aljones15 requested a review from BigBlueHat January 8, 2024 15:55
tests/TestEndpoints.js Outdated Show resolved Hide resolved
Copy link
Member

@BigBlueHat BigBlueHat left a comment

Choose a reason for hiding this comment

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

Code styles don't apply to other abbreviations, fwiw.

README.md Outdated
- [VC 2.0 Context - https://www.w3.org/ns/credentials/v2](https://www.w3.org/ns/credentials/v2)
- [VC Examples Context - https://www.w3.org/ns/credentials/examples/v2](https://www.w3.org/ns/credentials/examples/v2)
- [Vc 2.0 Context - https://www.w3.org/ns/credentials/v2](https://www.w3.org/ns/credentials/v2)
- [Vc Examples Context - https://www.w3.org/ns/credentials/examples/v2](https://www.w3.org/ns/credentials/examples/v2)
Copy link
Member

Choose a reason for hiding this comment

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

Well...this takes the code style into the wrong place. 😃 These are for people, who typically abbreviate Verifiable Credentials as VC...and would read Vc as a typo. So, the README needs refixing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This should make the corrections asked for: eda2a3b

@@ -51,16 +56,16 @@ async function getKeys() {
}

/**
* An extremely basic VP prover. This is not final
* An extremely basic Vp creator. This is not final
Copy link
Member

Choose a reason for hiding this comment

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

Again, these are human facing abbreviations, so need to stay all caps. Maybe a global search and replace got too greedy? 😀

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
* An extremely basic Vp creator. This is not final
* An extremely basic VP creator. This is not final

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was actually just being thorough anyways here ya go: eda2a3b

@aljones15 aljones15 requested a review from BigBlueHat January 9, 2024 12:34
@aljones15 aljones15 merged commit fcdd1ef into main Jan 10, 2024
2 checks passed
@aljones15 aljones15 deleted the use-endpoints-class branch January 10, 2024 16:58
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.

3 participants