Normalize i18n() calls to prepare for ICU migration
This commit is contained in:
parent
7c8e7c1013
commit
c02c8d9640
17 changed files with 377 additions and 273 deletions
|
@ -60,9 +60,10 @@ describe('NativeThemeListener', () => {
|
|||
|
||||
const listener = createNativeThemeListener(ipc, holder);
|
||||
|
||||
ipc.emit('native-theme:changed', null, <NativeThemeState>{
|
||||
const state: NativeThemeState = {
|
||||
shouldUseDarkColors: false,
|
||||
});
|
||||
};
|
||||
ipc.emit('native-theme:changed', null, state);
|
||||
|
||||
assert.strictEqual(holder.systemTheme, 'light');
|
||||
assert.strictEqual(listener.getSystemTheme(), 'light');
|
||||
|
@ -80,8 +81,9 @@ describe('NativeThemeListener', () => {
|
|||
done();
|
||||
});
|
||||
|
||||
ipc.emit('native-theme:changed', null, <NativeThemeState>{
|
||||
const state: NativeThemeState = {
|
||||
shouldUseDarkColors: false,
|
||||
});
|
||||
};
|
||||
ipc.emit('native-theme:changed', null, state);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue