Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lianbenjamin committed Dec 3, 2023
1 parent 724b878 commit ab5d36f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/src/common/storage/storage-manager.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
Expand All @@ -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');
});
Expand Down
4 changes: 2 additions & 2 deletions test/src/common/utils/setup-helpers.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit ab5d36f

Please sign in to comment.