Skip to content

Commit

Permalink
fix(FEC-11510): fix cvaa default font size (#491)
Browse files Browse the repository at this point in the history
Remove references to fontScale to match changes in playkit-js.
Fixes FEC-11510.

Related PRs:
kaltura/playkit-js#603
kaltura/playkit-js-ui#639
  • Loading branch information
SivanA-Kaltura committed Sep 13, 2021
1 parent 4c7d8bd commit 99f2959
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions test/src/setup.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import '../../src/index';
import {setup} from '../../src/setup';
import * as TestUtils from './utils/test-utils';
import StorageWrapper from '../../src/common/storage/storage-wrapper';
import {TextStyle} from '@playkit-js/playkit-js';

const targetId = 'player-placeholder_setup.spec';

Expand Down Expand Up @@ -69,20 +70,18 @@ describe('setup', function () {
});

it('should set text style from storage', function () {
let textStyle = {
fontSize: '20%',
let textStyle = TextStyle.fromJson({
fontSize: '75%',
fontFamily: 'sans-serif',
fontColor: [14, 15, 0],
fontOpacity: 0,
backgroundColor: [1, 2, 3],
backgroundOpacity: 1,
fontEdge: [],
fontScale: 1
};
fontEdge: []
});
sandbox.stub(StorageWrapper, 'getItem').withArgs('textStyle').returns(textStyle);
kalturaPlayer = setup(config);
const textStyleObj = JSON.parse(JSON.stringify(kalturaPlayer.textStyle));
textStyleObj.should.deep.equal(textStyle);
kalturaPlayer.textStyle.should.deep.equal(textStyle);
});

it('should configure sources', function (done) {
Expand Down

0 comments on commit 99f2959

Please sign in to comment.