Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe('Test', () => {
- const englishMessageBundle = {
- "KEY1": "VALUE1",
- "KEY2": "VALUE2",
- "KEY3": "VALUE3",
- };
- const dutchMessageBundle = {
- "KEY1": "WAARDE1",
- // We forgot to add KEY 2, the test should notice this and fail.
- "KEY3": "WAARDE3",
- };
- test('Verify if all keys in the english bundle also exist in the dutch bundle', () => {
- for (const [key] of Object.entries(englishMessageBundle)) {
- expect(Object.prototype.hasOwnProperty.call(dutchMessageBundle, key)).toBeTruthy();
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement