Beispiel #1
0
test('can check for locale existance', () => {
  const dict = new Dictionary({
    en: { }
  });

  expect(dict.hasLocale('en')).toBe(true);
  expect(dict.hasLocale('ar')).toBe(false);
});
Beispiel #2
0
test('does not merge if a non object is provided', () => {
  const dict = new Dictionary('a string');

  expect(dict.hasLocale('en')).toBe(false);
});