You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/app/modules/angular-slickgrid/components/__tests__/slick-pagination-without-translate.component.spec.ts
+5-10
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ import { By } from '@angular/platform-browser';
it('should throw an error when "enableTranslate" is set and Translate Service is not provided',(done)=>{
83
77
try{
84
-
component.enableTranslate=true;
78
+
component.gridOptions.enableTranslate=true;
85
79
component.constructor();
80
+
component.ngOnInit();
86
81
}catch(e){
87
82
expect(e.toString()).toContain('[Angular-Slickgrid] requires "ngx-translate" to be installed and configured when the grid option "enableTranslate" is enabled.');
88
83
done();
89
84
}
90
85
});
91
86
92
87
it('should have defined locale and expect new text in the UI',(done)=>{
0 commit comments