Expose i18n globals in SignalContext across all windows
This commit is contained in:
parent
55394e17c0
commit
4455328312
13 changed files with 38 additions and 27 deletions
|
@ -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(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue