From ab5d36fd9f70d1abf38414cd8d29b8210362e64f Mon Sep 17 00:00:00 2001 From: lianbenjamin <79077248+lianbenjamin@users.noreply.github.com> Date: Sun, 3 Dec 2023 18:07:18 +0200 Subject: [PATCH] fix tests --- test/src/common/storage/storage-manager.spec.js | 4 ++-- test/src/common/utils/setup-helpers.spec.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/src/common/storage/storage-manager.spec.js b/test/src/common/storage/storage-manager.spec.js index dd11bcc10..b04854016 100644 --- a/test/src/common/storage/storage-manager.spec.js +++ b/test/src/common/storage/storage-manager.spec.js @@ -108,7 +108,7 @@ describe('StorageManager', function () { } }; sandbox.stub(LocalStorageManager, 'getPlayerTextStyle').returns({fontFamily: 'Arial'}); - sandbox.stub(LocalStorageManager, 'isLocalStorageAvailable').returns(true); + sandbox.stub(LocalStorageManager, 'isStorageAvailable').returns(true); setStorageTextStyle(player); player.textStyle.fontFamily.should.equal('Arial'); }); @@ -123,7 +123,7 @@ describe('StorageManager', function () { } }; sandbox.stub(LocalStorageManager, 'getPlayerTextStyle').returns({fontFamily: 'Arial'}); - sandbox.stub(LocalStorageManager, 'isLocalStorageAvailable').returns(true); + sandbox.stub(LocalStorageManager, 'isStorageAvailable').returns(true); setStorageTextStyle(player); player.textStyle.fontFamily.should.equal('Verdana'); }); diff --git a/test/src/common/utils/setup-helpers.spec.js b/test/src/common/utils/setup-helpers.spec.js index f6e7991ad..83807faa6 100644 --- a/test/src/common/utils/setup-helpers.spec.js +++ b/test/src/common/utils/setup-helpers.spec.js @@ -202,7 +202,7 @@ describe('setStorageConfig', function () { audioLanguage: 'fra' } }; - sandbox.stub(LocalStorageManager, 'isLocalStorageAvailable').callsFake(() => true); + sandbox.stub(LocalStorageManager, 'isStorageAvailable').callsFake(() => true); sandbox.stub(LocalStorageManager, 'hasStorage').callsFake(() => true); sandbox.stub(LocalStorageManager, 'getStorageConfig').callsFake(() => storageConfig); SetupHelpers.setStorageConfig(config); @@ -218,7 +218,7 @@ describe('setStorageConfig', function () { audioLanguage: 'fra' } }; - sandbox.stub(LocalStorageManager, 'isLocalStorageAvailable').callsFake(() => true); + sandbox.stub(LocalStorageManager, 'isStorageAvailable').callsFake(() => true); sandbox.stub(LocalStorageManager, 'hasStorage').callsFake(() => true); sandbox.stub(LocalStorageManager, 'getStorageConfig').callsFake(() => storageConfig); SetupHelpers.setStorageConfig(config);