title: Angular 4+ , ag-grid: Unit test angular component that implements AgRendererComponent
body: <p>I have a angular component that implements AgRendererComponent for one of the columns in ag-grid.</p>
  
  <p>I want to write unit tests for the component below. Could someone guide me through. This might look to be a very simple component but i may add more logic later on.
  I use ag-grid - 13.0.0 and angular - 4.4+</p>
  
  <p><em>Ignore if there are any syntax errors.</em></p>
  
  <pre><code>@Component({
    selector: 'grid-column',
    template: `&lt;span class="hyperlink"&gt;&lt;a href="#"&gt;{{ columnValue }}&lt;/a&gt;&lt;/span&gt;`
  })
  
  export class GridColumnComponent implements AgRendererComponent  {
  
   private params: any;
   columnValue: string;
  
   constructor() { }
  
   refresh(params: any) {
      this.params = params;
   }
   agInit(params:any):void {
      this.params = params;
      this.columnValue = this.params.node.data.columnValue;
   }
  }
  </code></pre>