UNPKG

iana-tz-json-generator-and-importer

Version:

Quickly get timezone names and metadata from the IANA into your application in the format you want.

14 lines (11 loc) 420 B
import {formatLocation} from './format-location'; describe('formatLocation', () => { it('should turn a location string into a location object', () => { expect(formatLocation('Sydney')) .toEqual('Sydney'); expect(formatLocation('Argentina/Tucuman')) .toEqual('Argentina - Tucuman'); expect(formatLocation('Cape_Verde')) .toEqual('Cape Verde'); }) });