Skip to content

Commit

Permalink
feat(FEC-13450): upd tests
Browse files Browse the repository at this point in the history
  • Loading branch information
semarche-kaltura committed Nov 21, 2023
1 parent d5cb616 commit 1fa077c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
19 changes: 17 additions & 2 deletions test/src/k-provider/ovp/be-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -1815,7 +1815,17 @@ const PlaylistById = {
downloadUrl: '',
objectType: 'KalturaMediaEntry'
}
]
],
{
objectType: 'KalturaUserEntryListResponse',
objects: [
{
objectType: 'KalturaViewHistoryUserEntry',
playlistLastEntryId: '0_15xrxwvo'
}
],
totalCount: 1
}
]
};

Expand Down Expand Up @@ -1943,7 +1953,12 @@ const AnonymousPlaylistById = {
downloadUrl: '',
objectType: 'KalturaMediaEntry'
}
]
],
{
objectType: 'KalturaUserEntryListResponse',
objects: [],
totalCount: 0
}
]
};

Expand Down
2 changes: 2 additions & 0 deletions test/src/k-provider/ovp/provider.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,7 @@ describe('getPlaylistConfig', function () {
playlistConfig.metadata.name.should.equal('Playlist_VOD_Only');
playlistConfig.metadata.description.should.equal('Playlist_VOD_Only_desc');
playlistConfig.poster.should.equal('http://cdntesting.qa.mkaltura.com/p/1091/sp/0/thumbnail/entry_id/0_wckoqjnn/version/100162');
(playlistConfig.playlistLastEntryId === undefined).should.eql(true);
done();
} catch (err) {
done(err);
Expand All @@ -742,6 +743,7 @@ describe('getPlaylistConfig', function () {
playlistConfig.metadata.name.should.equal('Playlist_VOD_Only');
playlistConfig.metadata.description.should.equal('Playlist_VOD_Only_desc');
playlistConfig.poster.should.equal('http://cdntesting.qa.mkaltura.com/p/1091/sp/0/thumbnail/entry_id/0_wckoqjnn/version/100162');
playlistConfig.playlistLastEntryId.should.equal('0_15xrxwvo');
done();
} catch (err) {
done(err);
Expand Down

0 comments on commit 1fa077c

Please sign in to comment.