fix(i18n): retain historical checklist text for unknown system keys
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { checklistSystemTranslationToken } from './applicationWorkspace';
|
||||
|
||||
test.each(['retired-system-task', 'constructor', '__proto__'])('does not manufacture translation keys for %s', key => {
|
||||
expect(checklistSystemTranslationToken(key)).toBeNull();
|
||||
});
|
||||
|
||||
test('retains the known system translation and learning/custom boundaries', () => {
|
||||
expect(checklistSystemTranslationToken('prepare-cv')).toBe('prepareCv');
|
||||
expect(checklistSystemTranslationToken('learning:prepare-cv')).toBeNull();
|
||||
expect(checklistSystemTranslationToken(null)).toBeNull();
|
||||
});
|
||||
Reference in New Issue
Block a user