Skip to content

Commit

Permalink
add all test files
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanTGold committed Oct 19, 2023
1 parent 6d76b9a commit c3a9822
Show file tree
Hide file tree
Showing 32 changed files with 4,843 additions and 1,284 deletions.
8 changes: 8 additions & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ module.exports = function (config) {
{
pattern: 'tests/index.js',
watched: false
},
{
pattern: 'tests/assets/mov_bbb.mp4',
included: false
},
{
pattern: 'tests/assets/audios.mp4',
included: false
}
],

Expand Down
4 changes: 2 additions & 2 deletions src/common/ads/prebid-manager.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getLogger, Utils } from '@playkit-js/playkit-js';
import { KPAdPrebidConfig, KPPrebidConfig } from '../../types/ads/prebid-config';
import { DefferedPromise } from '../../types/utils/deffered-promise';
import { DeferredPromise } from '../../types/utils/deferred-promise';

const AD_REQUEST_TIMEOUT = 4000;

Expand Down Expand Up @@ -36,7 +36,7 @@ class PrebidManager {
* @private
* @memberof PrebidManager
*/
private _loadPromise: DefferedPromise;
private _loadPromise: DeferredPromise;

constructor(config?: KPPrebidConfig) {
this._loadPromise = Utils.Object.defer();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export type DefferedPromise = {
export type DeferredPromise = {
resolve: (value?: any | PromiseLike<any>) => void;
reject: (reason?: any) => void;
catch: (param: () => any) => void;
Expand Down
Loading

0 comments on commit c3a9822

Please sign in to comment.