Expose i18n globals in SignalContext across all windows

This commit is contained in:
Jamie Kyle 2023-08-07 13:28:09 -07:00 committed by GitHub
parent 55394e17c0
commit 4455328312
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 38 additions and 27 deletions

View file

@ -16,8 +16,14 @@ describe('formatTimestamp', () => {
beforeEach(() => {
sandbox = sinon.createSandbox();
localesStub = sandbox.stub(window, 'getPreferredSystemLocales');
hourCycleStub = sandbox.stub(window, 'getHourCyclePreference');
localesStub = sandbox.stub(
window.SignalContext,
'getPreferredSystemLocales'
);
hourCycleStub = sandbox.stub(
window.SignalContext,
'getHourCyclePreference'
);
});
afterEach(() => {