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

Fix/vpaid integration #93

Merged
merged 15 commits into from
Nov 19, 2018
Merged

Fix/vpaid integration #93

merged 15 commits into from
Nov 19, 2018

Conversation

carpasse
Copy link
Contributor

No description provided.

affects: @mailonline/videojs-vast-vpaid
affects: @mailonline/video-ad-sdk
affects: @mailonline/vast-xml2js, @mailonline/video-ad-sdk,
@mailonline/videojs-vast-vpaid
affects: @mailonline/video-ad-sdk
affects: @mailonline/video-ad-sdk
affects: @mailonline/video-ad-sdk
affects: @mailonline/video-ad-sdk
affects: @mailonline/video-ad-sdk
... responses that contain vpaid and vast creatives in the same linear
element
affects: @mailonline/video-ad-sdk
... runWaterfall
affects: @mailonline/video-ad-sdk
... response
affects: @mailonline/video-ad-sdk
@@ -53,6 +56,7 @@ describe('VideoAdContainer', () => {
expect(videoAdContainer.videoElement.parentNode).toBe(adContainerElement);
});

// eslint-disable-next-line jest/no-disabled-tests
Copy link

Choose a reason for hiding this comment

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

Can this be removed now? It doesn't look like the test is disabled.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍


jest.mock('../supportsSrcdoc');
// eslint-disable-next-line jest/no-disabled-tests
Copy link

Choose a reason for hiding this comment

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

Can this be removed now? It doesn't look like the test is disabled.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

@@ -57,6 +64,119 @@ describe('runWaterfall', () => {
jest.resetAllMocks();
});

describe('after fetching Vast response', () => {
test('must call onError is Vast response is undefined', async () => {
Copy link

Choose a reason for hiding this comment

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

is if

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

expect(onError.mock.calls[0][0].message).toBe('Invalid VastChain');
});

test('must call onError is Vast response is an empty array', async () => {
Copy link

Choose a reason for hiding this comment

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

is if

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

Fetz
Fetz previously approved these changes Oct 31, 2018
@@ -0,0 +1,3 @@
const supportsSrcdoc = () => 'srcdoc' in document.createElement('iframe');
Copy link
Contributor

Choose a reason for hiding this comment

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

is this being executed multiple times? if yes then you can check once

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

affects: @mailonline/video-ad-sdk
affects: @mailonline/video-ad-sdk
@carpasse carpasse merged commit 94d03ba into next-release Nov 19, 2018
@carpasse carpasse deleted the fix/vpaid-integration branch November 19, 2018 12:44
@carpasse
Copy link
Contributor Author

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants