Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matvp91 committed Jan 4, 2025
1 parent b4ee1cf commit b069b0a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/stitcher/src/playlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
mergeInterstitials,
} from "./interstitials";
import { encrypt } from "./lib/crypto";
import { createUrl, joinUrl, resolveUri } from "./lib/url";
import { createUrl, joinUrl } from "./lib/url";
import {
parseMasterPlaylist,
parseMediaPlaylist,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ exports[`getStaticDateRanges should create dateRanges for live 1`] = `
exports[`getAssets should get assets by interstitials 1`] = `
[
{
"duration": 10,
"kind": "ad",
"url": "https://mock.com/interstitial1/master.m3u8",
},
Expand Down
1 change: 1 addition & 0 deletions packages/stitcher/test/interstitials.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ describe("getAssets", () => {
type: "asset",
data: {
url: "https://mock.com/interstitial1/master.m3u8",
duration: 10,
kind: "ad",
},
},
Expand Down
2 changes: 2 additions & 0 deletions packages/stitcher/test/test-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,15 @@ export function addFakeInterstitials(session: Session) {
type: "asset",
data: {
url: "https://mock.com/interstitial/bumper.m3u8",
duration: 5,
kind: "bumper",
},
},
{
type: "asset",
data: {
url: "https://mock.com/interstitial/ad.m3u8",
duration: 10,
kind: "ad",
},
},
Expand Down

0 comments on commit b069b0a

Please sign in to comment.