Skip to content

Commit

Permalink
fix(timepicker): fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lexasq committed Jul 16, 2024
1 parent 57a60d1 commit d942ade
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/chronos/public_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export { esUsLocale } from './i18n/es-us';
export { etLocale } from './i18n/et';
export { fiLocale } from './i18n/fi';
export { frLocale } from './i18n/fr';
export {frCaLocale} from './i18n/fr-ca';
export { frCaLocale } from './i18n/fr-ca';
export { glLocale } from './i18n/gl';
export { heLocale } from './i18n/he';
export { hiLocale } from './i18n/hi';
Expand Down
2 changes: 1 addition & 1 deletion src/locale/public_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export { esUsLocale } from 'ngx-bootstrap/chronos';
export { etLocale } from 'ngx-bootstrap/chronos';
export { fiLocale } from 'ngx-bootstrap/chronos';
export { frLocale } from 'ngx-bootstrap/chronos';
export {frCaLocale} from 'ngx-bootstrap/chronos';
export { frCaLocale } from 'ngx-bootstrap/chronos';
export { glLocale } from 'ngx-bootstrap/chronos';
export { heLocale } from 'ngx-bootstrap/chronos';
export { hiLocale } from 'ngx-bootstrap/chronos';
Expand Down
3 changes: 2 additions & 1 deletion src/timepicker/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export default {
'jest-preset-angular',
{
tsconfig: '<rootDir>/tsconfig.spec.json',
stringifyContentPathRegex: '\\.(html|svg)$'
stringifyContentPathRegex: '\\.(html|svg)$',
isolatedModules: true
}
]
},
Expand Down
6 changes: 3 additions & 3 deletions src/timepicker/testing/timepicker.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,7 @@ describe('Component: TimepickerComponent', () => {
component.updateHours(inputHours);

expect(component.invalidHours).toEqual(false);
expect(component._updateTime).toHaveBeenCalled();
expect(component._updateTime).toHaveBeenCalled();
});

it('should clear model if minute input is invalid', () => {
Expand Down Expand Up @@ -1117,7 +1117,7 @@ describe('Component: TimepickerComponent', () => {
component.updateMinutes(inputMinutes);

expect(component.invalidMinutes).toEqual(false);
expect(component._updateTime).toHaveBeenCalled();
expect(component._updateTime).toHaveBeenCalled();
});

it('should clear model if second input is invalid', () => {
Expand Down Expand Up @@ -1159,7 +1159,7 @@ describe('Component: TimepickerComponent', () => {
component.updateSeconds(inputSeconds);

expect(component.invalidSeconds).toEqual(false);
expect(component._updateTime).toHaveBeenCalled();
expect(component._updateTime).toHaveBeenCalled();
});

it('should valid value in input fields', fakeAsync(() => {
Expand Down

0 comments on commit d942ade

Please sign in to comment.