mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
test(grid-list): make error expectation less brittle (#15303)
This makes the test pass in ivy (as well as ViewEngine) since attribute bindings are set during creating mode in ivy.
This commit is contained in:
@@ -23,9 +23,10 @@ describe('MatGridList', () => {
|
||||
});
|
||||
|
||||
it('should throw error if rowHeight ratio is invalid', () => {
|
||||
const fixture = createComponent(GridListWithInvalidRowHeightRatio);
|
||||
|
||||
expect(() => fixture.detectChanges()).toThrowError(/invalid ratio given for row-height/);
|
||||
expect(() => {
|
||||
const fixture = createComponent(GridListWithInvalidRowHeightRatio);
|
||||
fixture.detectChanges();
|
||||
}).toThrowError(/invalid ratio given for row-height/);
|
||||
});
|
||||
|
||||
it('should throw error if tile colspan is wider than total cols', () => {
|
||||
|
||||
Reference in New Issue
Block a user