| import { BoolCellRendererComponent } from './bool-cell-renderer.component'; |
| import { ICellRendererParams } from 'ag-grid-community'; |
| |
| describe('BoolCellRendererComponent', () => { |
| let component: BoolCellRendererComponent; |
| |
| beforeEach(() => { |
| component = new BoolCellRendererComponent(); |
| }); |
| |
| it('should create', () => { |
| expect(component).toBeTruthy(); |
| }); |
| |
| it('should return false when calling refesh', () => { |
| expect(component.refresh()).toBeFalsy(); |
| }); |
| |
| it('should set params', () => { |
| let p: ICellRendererParams = {data: 'x'} as any; |
| component.agInit(p); |
| expect(component.params).toBe(p); |
| }); |
| |
| }); |
| |