-
Notifications
You must be signed in to change notification settings - Fork 41
feat: Add getWebIdDataset method #1761
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
9ef924b to
3331220
Compare
ThisIsMissEm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few small changes, but otherwise, great work!
| const profileContent = buildThing({ url: webId }).addIri( | ||
| rdf.type, | ||
| foaf.Agent | ||
| ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch!
| >; | ||
| }; | ||
| mockedUnauthFetch.mockRejectedValueOnce(new Error("error")); | ||
| await expect(getWebIdDataset(MOCK_WEBID)).rejects.toThrow("error"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be good to make the error message something like Fetch Failed 500 internal server error just so the code can't be satisfied by just doing new Error("error") or something — i.e., swallowing the error
3331220 to
3431741
Compare
Co-authored-by: Emelia Smith <ThisIsMissEm@users.noreply.github.com>
Co-authored-by: Emelia Smith <ThisIsMissEm@users.noreply.github.com>
b139653 to
e7ef9ac
Compare
Add getWebIdDataset function
Checklist
index.ts, if applicable..tsfiles) are listed in theexportsfield inpackage.json, if applicable..tsfiles) are listed in thetypedocOptions.entryPointsfield intsconfig.json, if applicable.