import { bilingual } from './bilingual';

describe('bilingual', () => {
  it('joins English and Chinese with a slash, no spaces', () => {
    expect(bilingual('Worship', '敬拜')).toBe('Worship/敬拜');
  });

  it('returns English only when Chinese is null', () => {
    expect(bilingual('Zelle', null)).toBe('Zelle');
  });

  it('returns English only when Chinese is undefined', () => {
    expect(bilingual('PayPal')).toBe('PayPal');
  });

  it('returns English only when Chinese is an empty string', () => {
    expect(bilingual('Other', '')).toBe('Other');
  });
});
