mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ACS-4985] Updated imports in test cases
This commit is contained in:
committed by
Jatin_Chugh
parent
20f38a0d46
commit
c8e4e179b3
+8
-2
@@ -2,6 +2,8 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|||||||
|
|
||||||
import { SearchDateRangeAdvancedComponent } from './search-date-range-advanced.component';
|
import { SearchDateRangeAdvancedComponent } from './search-date-range-advanced.component';
|
||||||
import { By } from '@angular/platform-browser';
|
import { By } from '@angular/platform-browser';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
import { ContentTestingModule } from '../../../testing/content.testing.module';
|
||||||
|
|
||||||
describe('SearchDateRangeAdvancedComponent', () => {
|
describe('SearchDateRangeAdvancedComponent', () => {
|
||||||
let component: SearchDateRangeAdvancedComponent;
|
let component: SearchDateRangeAdvancedComponent;
|
||||||
@@ -9,7 +11,11 @@ describe('SearchDateRangeAdvancedComponent', () => {
|
|||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
declarations: [SearchDateRangeAdvancedComponent]
|
declarations: [SearchDateRangeAdvancedComponent],
|
||||||
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
ContentTestingModule
|
||||||
|
]
|
||||||
}).compileComponents();
|
}).compileComponents();
|
||||||
|
|
||||||
fixture = TestBed.createComponent(SearchDateRangeAdvancedComponent);
|
fixture = TestBed.createComponent(SearchDateRangeAdvancedComponent);
|
||||||
@@ -203,6 +209,6 @@ describe('SearchDateRangeAdvancedComponent', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should not allow selecting a date after the current date when Between option is selected', () => {
|
it('should not allow selecting a date after the current date when Between option is selected', () => {
|
||||||
|
//TODO: Will need to be updated after date-fns
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user