Skip to content

Commit 084af1d

Browse files
author
Kyle Seager
committed
Fixed prettier issue
1 parent 741d27a commit 084af1d

2 files changed

Lines changed: 21 additions & 6 deletions

File tree

tests/unit/controller/fragment-tracker.ts

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,11 @@ describe('FragmentTracker', function () {
589589
});
590590

591591
it('should return empty array when no fragments exist', function () {
592-
const fragments = fragmentTracker.getFragmentsInRange(0, 10, PlaylistLevelType.AUDIO);
592+
const fragments = fragmentTracker.getFragmentsInRange(
593+
0,
594+
10,
595+
PlaylistLevelType.AUDIO,
596+
);
593597
expect(fragments).to.be.empty;
594598
});
595599

@@ -611,7 +615,11 @@ describe('FragmentTracker', function () {
611615
triggerFragLoadedAndFragBuffered(hls, fragment);
612616

613617
// Search in range 0-10 when fragment is at 20-25
614-
const fragments = fragmentTracker.getFragmentsInRange(0, 10, PlaylistLevelType.AUDIO);
618+
const fragments = fragmentTracker.getFragmentsInRange(
619+
0,
620+
10,
621+
PlaylistLevelType.AUDIO,
622+
);
615623
expect(fragments).to.be.empty;
616624
});
617625

@@ -633,7 +641,11 @@ describe('FragmentTracker', function () {
633641
triggerFragLoadedAndFragBuffered(hls, audioFragment);
634642

635643
// Should return empty when searching for main fragments
636-
const mainFragments = fragmentTracker.getFragmentsInRange(0, 10, PlaylistLevelType.MAIN);
644+
const mainFragments = fragmentTracker.getFragmentsInRange(
645+
0,
646+
10,
647+
PlaylistLevelType.MAIN,
648+
);
637649
expect(mainFragments).to.be.empty;
638650
});
639651
});

tests/unit/hls.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ describe('Hls', function () {
158158

159159
// Get the audio stream controller from internal components
160160
const audioStreamController = (hls as any).networkControllers.filter(
161-
(controller: any) => controller.constructor.name === 'AudioStreamController'
161+
(controller: any) =>
162+
controller.constructor.name === 'AudioStreamController',
162163
)[0];
163164

164165
expect(audioStreamController).to.exist;
@@ -174,14 +175,16 @@ describe('Hls', function () {
174175
it('should merge with default config when partially specified', function () {
175176
const partialConfig = {
176177
safetyBufferFactor: 4.0,
177-
maxBufferLength: 60
178+
maxBufferLength: 60,
178179
};
179180
const hls = new Hls(partialConfig);
180181

181182
expect(hls.config.safetyBufferFactor).to.equal(4.0);
182183
expect(hls.config.maxBufferLength).to.equal(60);
183184
// Other default values should still be present
184-
expect(hls.config.abrBandWidthFactor).to.equal(hlsDefaultConfig.abrBandWidthFactor);
185+
expect(hls.config.abrBandWidthFactor).to.equal(
186+
hlsDefaultConfig.abrBandWidthFactor,
187+
);
185188
});
186189

187190
it('should handle edge case values', function () {

0 commit comments

Comments
 (0)