]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/eg2/src/app/staff/admin/local/org-unit-settings/timezone-select/timezone-select.component.spec.ts
LP1850473: manual and automated eslint fixes
[Evergreen.git] / Open-ILS / src / eg2 / src / app / staff / admin / local / org-unit-settings / timezone-select / timezone-select.component.spec.ts
1 import { Timezone } from '@eg/share/util/timezone';
2 import { TimezoneSelectComponent } from './timezone-select.component';
3
4 describe('TimezoneSelectComponent', () => {
5     it('should have an entry for each valid timezone', () => {
6         const service = jasmine.createSpyObj<Timezone>(['values']);
7         service.values.and.returnValue(['America/Vancouver']);
8         const component = new TimezoneSelectComponent(service);
9         expect(component.entries).toContain({id: 'America/Vancouver', label: 'America/Vancouver'});
10     });
11 });