Skip to main content

All Questions

0 votes
1 answer
134 views

testing key directive in Angular (9)

I have a directive that I am trying to test. But the length of the value in the directive is always undefined. What am I doing wrong? @Directive({ selector: '[evAutoTab]' }) export class ...
ed4becky's user avatar
  • 1,630
4 votes
1 answer
3k views

Testing attribute directive

Does anyone know how I can test this attribute directive in Angular 2? I'm looking for some examples, but I have not found it. If someone has an example to show me or show me a way to do it, it would ...
Marcio M.'s user avatar
  • 371
0 votes
0 answers
86 views

Testing directive in Angular 2 + Jasmine I am getting an error

I am getting the error below when I run the test using Angular 2 + Jasmine. Does anyone know how can I solve this problem? I already have imported the directive in app.module.ts. Can't bind to '...
Marcio M.'s user avatar
  • 371