-
Notifications
You must be signed in to change notification settings - Fork 7
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
Conversation
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 |
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.
Can this be removed now? It doesn't look like the test is disabled.
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.
👍
|
||
jest.mock('../supportsSrcdoc'); | ||
// eslint-disable-next-line jest/no-disabled-tests |
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.
Can this be removed now? It doesn't look like the test is disabled.
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.
👍
@@ -57,6 +64,119 @@ describe('runWaterfall', () => { | |||
jest.resetAllMocks(); | |||
}); | |||
|
|||
describe('after fetching Vast response', () => { | |||
test('must call onError is Vast response is undefined', async () => { |
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.
is
if
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.
👍
expect(onError.mock.calls[0][0].message).toBe('Invalid VastChain'); | ||
}); | ||
|
||
test('must call onError is Vast response is an empty array', async () => { |
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.
is
if
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.
👍
@@ -0,0 +1,3 @@ | |||
const supportsSrcdoc = () => 'srcdoc' in document.createElement('iframe'); |
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.
is this being executed multiple times? if yes then you can check once
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.
👍
affects: @mailonline/video-ad-sdk
affects: @mailonline/video-ad-sdk
🎉 This PR is included in version 1.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
No description provided.