-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(treeGrid): create tree-grid-search.spec.ts file #3519
- Loading branch information
Tacho
committed
Jan 18, 2019
1 parent
4a6a4a0
commit 4e37998
Showing
3 changed files
with
139 additions
and
1 deletion.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
projects/igniteui-angular/src/lib/grids/tree-grid/tree-grid-search.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { async, TestBed } from '@angular/core/testing'; | ||
import { IgxTreeGridComponent } from './tree-grid.component'; | ||
import { IgxTreeGridModule } from './index'; | ||
import { TreeGridFunctions } from '../../test-utils/tree-grid-functions.spec'; | ||
import { IgxTreeGridSearchComponent, IgxTreeGridPrimaryForeignKeyComponent } from '../../test-utils/tree-grid-components.spec'; | ||
import { NoopAnimationsModule } from '@angular/platform-browser/animations'; | ||
import { configureTestSuite } from '../../test-utils/configure-suite'; | ||
|
||
|
||
describe('IgxTreeGrid - search API', () => { | ||
configureTestSuite(); | ||
let fix; | ||
let treeGrid: IgxTreeGridComponent; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ | ||
IgxTreeGridSearchComponent, | ||
IgxTreeGridPrimaryForeignKeyComponent | ||
], | ||
imports: [IgxTreeGridModule, NoopAnimationsModule] | ||
}).compileComponents(); | ||
})); | ||
|
||
describe('Child Collection', () => { | ||
beforeEach(() => { | ||
fix = TestBed.createComponent(IgxTreeGridSearchComponent); | ||
fix.detectChanges(); | ||
treeGrid = fix.componentInstance.treeGrid; | ||
}); | ||
|
||
}); | ||
|
||
describe('Primary/Foreign key', () => { | ||
beforeEach(() => { | ||
fix = TestBed.createComponent(IgxTreeGridPrimaryForeignKeyComponent); | ||
fix.detectChanges(); | ||
treeGrid = fix.componentInstance.treeGrid; | ||
}); | ||
|
||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters