mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
chore(data-table): hide stability warning in jasmine (#4840)
* No longer shows the data-table stability warning inside of jasmine tests.
This commit is contained in:
committed by
Andrew Seguin
parent
e98372e461
commit
1f93cdb247
@@ -101,8 +101,12 @@ export class CdkTable<T> implements CollectionViewer {
|
||||
|
||||
constructor(private readonly _differs: IterableDiffers,
|
||||
private readonly _changeDetectorRef: ChangeDetectorRef) {
|
||||
console.warn('The data table is still in active development ' +
|
||||
// Show the stability warning of the data-table only if it doesn't run inside of jasmine.
|
||||
// This is just temporary and should reduce warnings when running the tests.
|
||||
if (!(typeof window !== 'undefined' && window['jasmine'])) {
|
||||
console.warn('The data table is still in active development ' +
|
||||
'and should be considered unstable.');
|
||||
}
|
||||
|
||||
// TODO(andrewseguin): Add trackby function input.
|
||||
// Find and construct an iterable differ that can be used to find the diff in an array.
|
||||
|
||||
Reference in New Issue
Block a user