Skip to content

Commit

Permalink
refactor tests
Browse files Browse the repository at this point in the history
  • Loading branch information
karimMourra committed Sep 29, 2022
1 parent e25c01a commit 0d4f64f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion test/spec/modules/videoModule/pbVideo_spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { expect } from 'chai';
import { PbVideo } from 'modules/videoModule';
import CONSTANTS from 'src/constants.json';
import { AD_IMPRESSION, AD_ERROR, BID_IMPRESSION, BID_ERROR } from 'libraries/video/constants/events.js';

let ortbVideoMock;
let ortbContentMock;
Expand Down
2 changes: 1 addition & 1 deletion test/spec/modules/videoModule/shared/state_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { expect } from 'chai';

describe('State', function () {
let state = stateFactory();
beforeEach(function () {
beforeEach(() => {
state.clearState();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ describe('JWPlayerProvider', function () {
describe('adStateFactory', function () {
let adState = adStateFactory();

beforeEach(function() {
beforeEach(() => {
adState.clearState();
});

Expand Down Expand Up @@ -447,7 +447,7 @@ describe('adStateFactory', function () {
describe('timeStateFactory', function () {
let timeState = timeStateFactory();

beforeEach(function() {
beforeEach(() => {
timeState.clearState();
});

Expand Down Expand Up @@ -500,7 +500,7 @@ describe('timeStateFactory', function () {
describe('callbackStorageFactory', function () {
let callbackStorage = callbackStorageFactory();

beforeEach(function () {
beforeEach(() => {
callbackStorage.clearStorage();
});

Expand Down Expand Up @@ -774,8 +774,9 @@ describe('utils', function () {

describe('isOmidSupported', function () {
const isOmidSupported = utils.isOmidSupported;
const initialOmidSessionClient = window.OmidSessionClient;
afterEach(() => {
window.OmidSessionClient = undefined;
window.OmidSessionClient = initialOmidSessionClient;
});

it('should be true when Omid is loaded and client is VAST', function () {
Expand Down

0 comments on commit 0d4f64f

Please sign in to comment.