Skip to content

Commit d942ade

Browse files
committed
fix(timepicker): fixed tests
1 parent 57a60d1 commit d942ade

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

src/chronos/public_api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export { esUsLocale } from './i18n/es-us';
5050
export { etLocale } from './i18n/et';
5151
export { fiLocale } from './i18n/fi';
5252
export { frLocale } from './i18n/fr';
53-
export {frCaLocale} from './i18n/fr-ca';
53+
export { frCaLocale } from './i18n/fr-ca';
5454
export { glLocale } from './i18n/gl';
5555
export { heLocale } from './i18n/he';
5656
export { hiLocale } from './i18n/hi';

src/locale/public_api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export { esUsLocale } from 'ngx-bootstrap/chronos';
1212
export { etLocale } from 'ngx-bootstrap/chronos';
1313
export { fiLocale } from 'ngx-bootstrap/chronos';
1414
export { frLocale } from 'ngx-bootstrap/chronos';
15-
export {frCaLocale} from 'ngx-bootstrap/chronos';
15+
export { frCaLocale } from 'ngx-bootstrap/chronos';
1616
export { glLocale } from 'ngx-bootstrap/chronos';
1717
export { heLocale } from 'ngx-bootstrap/chronos';
1818
export { hiLocale } from 'ngx-bootstrap/chronos';

src/timepicker/jest.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ export default {
1515
'jest-preset-angular',
1616
{
1717
tsconfig: '<rootDir>/tsconfig.spec.json',
18-
stringifyContentPathRegex: '\\.(html|svg)$'
18+
stringifyContentPathRegex: '\\.(html|svg)$',
19+
isolatedModules: true
1920
}
2021
]
2122
},

src/timepicker/testing/timepicker.component.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,7 @@ describe('Component: TimepickerComponent', () => {
10771077
component.updateHours(inputHours);
10781078

10791079
expect(component.invalidHours).toEqual(false);
1080-
expect(component._updateTime).toHaveBeenCalled();
1080+
expect(component._updateTime).toHaveBeenCalled();
10811081
});
10821082

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

11191119
expect(component.invalidMinutes).toEqual(false);
1120-
expect(component._updateTime).toHaveBeenCalled();
1120+
expect(component._updateTime).toHaveBeenCalled();
11211121
});
11221122

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

11611161
expect(component.invalidSeconds).toEqual(false);
1162-
expect(component._updateTime).toHaveBeenCalled();
1162+
expect(component._updateTime).toHaveBeenCalled();
11631163
});
11641164

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

0 commit comments

Comments
 (0)