Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

proposal of changes to how we use sinon #222

Draft
wants to merge 1 commit into
base: ks_access_url_timeout_null
Choose a base branch
from

Conversation

breilly2
Copy link
Contributor

(includes turning on BDC signed URLs for demonstration purposes)

I can walk through this in person, but here's what I'm thinking we can do with these tests to make them a little more flexible (but still equal coverage) and readable.

(includes turning on BDC signed URLs for demonstration purposes)
@breilly2 breilly2 requested review from kshakir and mcovarr May 17, 2021 22:39
Copy link
Collaborator

@kshakir kshakir left a comment

Choose a reason for hiding this comment

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

Much simpler! 🎉

Comment on lines +765 to +768
const {
id: objectId, self_uri: drsUri,
access_methods: { 0: { access_id: accessId, access_url: { url: gsUrl } } }
} = bdcDrsResponse;
Copy link
Collaborator

Choose a reason for hiding this comment

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

NOTE: This destructuring of metadata responses will not work for self_uri from hcaDrsResponse and some others. (Yay "specifications"!) But those tests can be modified to hard code the drsUri some other way.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants