How to test data-cy directive?

I don’t know how to write unit-test for this directive. Can you help me?

import { Directive, ElementRef, Inject, Input, Renderer2 } from enter code here'@angular/core';

@Directive({
  // tslint:disable-next-line:directive-selector
  selector: '[data-cy]'
})
export class DataCyDirective {
  @Input('data-cy') dataCy: string;

  constructor(
    private el: ElementRef,
    private renderer: Renderer2,
    @Inject('production') isProd: boolean
  ) {
    if (isProd) {
      renderer.removeAttribute(el.nativeElement, 'data-cy');
    }
  }
}

Source: AngularJS