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

feat: Convert recordings to be HAR compliant #45

Merged
merged 26 commits into from Jul 1, 2018
Merged

feat: Convert recordings to be HAR compliant #45

merged 26 commits into from Jul 1, 2018

Conversation

offirgolan
Copy link
Collaborator

@offirgolan offirgolan commented Jun 26, 2018

No description provided.

package.json Outdated
@@ -14,9 +14,9 @@
],
"scripts": {
"commitmsg": "commitlint -E GIT_PARAMS",
"build": "lerna run build --ignore=@pollyjs/ember --parallel",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Lets revert and fix the build issues

@offirgolan offirgolan changed the title [WIP] feat: Convert recordings to be HAR compliant feat: Convert recordings to be HAR compliant Jun 29, 2018
get absoluteUrl() {
const { url } = this;

if (!isAbsoluteUrl(url)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Verify with jest

@@ -40,9 +40,15 @@ export default class XHRAdapter extends Adapter {
}

async onReplay(pollyRequest, recordingEntry) {
const { status, headers, body } = recordingEntry.response;
const { status, headers, content } = recordingEntry.response;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Consider consolidating between the two adapters

}

addEntries(entries = []) {
this.entries = uniqWith(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add tests here

@offirgolan offirgolan merged commit e622640 into master Jul 1, 2018
@offirgolan offirgolan deleted the har branch July 1, 2018 01:03
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.

None yet

2 participants