How to use countries-and-timezones - 6 common examples

To help you get started, we’ve selected a few countries-and-timezones examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github flow-typed / flow-typed / definitions / npm / countries-and-timezones_v1.x.x / flow_v0.104.x- / test_countries-and-timezones_v1.x.x.js View on Github external
it('should throw an error without specified timezone', () => {
            // $ExpectError
            timezones.getCountriesForTimezone();
        });
    });
github flow-typed / flow-typed / definitions / npm / countries-and-timezones_v1.x.x / flow_v0.104.x- / test_countries-and-timezones_v1.x.x.js View on Github external
it('should return an array of countries for specified timezone', () => {
            const timezone = timezones.getCountriesForTimezone('Europe/Berlin');
            // $ExpectError
            (timezones.getCountriesForTimezone('Europe/Berlin'): void);
        });
github flow-typed / flow-typed / definitions / npm / countries-and-timezones_v1.x.x / flow_v0.104.x- / test_countries-and-timezones_v1.x.x.js View on Github external
it('should return an array of timezones for specified country', () => {
            const timezone = timezones.getTimezonesForCountry('ES');
            // $ExpectError
            (timezones.getTimezonesForCountry('ES'): number);
        });
github flow-typed / flow-typed / definitions / npm / countries-and-timezones_v1.x.x / flow_v0.104.x- / test_countries-and-timezones_v1.x.x.js View on Github external
it('should throw an error without specified country', () => {
            // $ExpectError
            timezones.getTimezonesForCountry();
        });
    });
github flow-typed / flow-typed / definitions / npm / countries-and-timezones_v1.x.x / flow_v0.104.x- / test_countries-and-timezones_v1.x.x.js View on Github external
it('should return an object of countries', () => {
            const allCountries = timezones.getAllCountries();
            // $ExpectError
            (timezones.getAllCountries(): string);
        });
    });
github flow-typed / flow-typed / definitions / npm / countries-and-timezones_v1.x.x / flow_v0.104.x- / test_countries-and-timezones_v1.x.x.js View on Github external
it('should return an object of timezones', () => {
            const allTimezones = timezones.getAllTimezones();
            // $ExpectError
            (timezones.getAllTimezones(): string);
        });
    });

countries-and-timezones

Minimalistic library to work with countries and timezones data.

MIT
Latest version published 1 month ago

Package Health Score

80 / 100
Full package analysis