feat: Modernize the visual card editor. (#2586)

This commit is contained in:
Dermot Duffy
2026-07-20 20:44:16 -07:00
committed by GitHub
parent e204ec183f
commit b6e1de5999
146 changed files with 8487 additions and 5992 deletions
+4 -4
View File
@@ -244,12 +244,12 @@ describe('localize', () => {
expect(localize('common.advanced_camera_card', '', '')).toBe('Advanced Camera Card');
});
it('should throw for completely missing key', async () => {
it('should return the key for completely missing key', async () => {
const { localize } = await importFresh();
// The first reduce throws (caught), the English fallback also throws
// (uncaught), so this will throw a TypeError.
expect(() => localize('nonexistent.deeply.nested.key')).toThrow();
expect(localize('nonexistent.deeply.nested.key')).toBe(
'nonexistent.deeply.nested.key',
);
});
it('should return translated value for single-segment key', async () => {