test('can check for locale existance', () => { const dict = new Dictionary({ en: { } }); expect(dict.hasLocale('en')).toBe(true); expect(dict.hasLocale('ar')).toBe(false); });
test('does not merge if a non object is provided', () => { const dict = new Dictionary('a string'); expect(dict.hasLocale('en')).toBe(false); });