Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testing component with pipe #32

Open
MartynenkoA opened this issue Aug 4, 2019 · 1 comment
Open

testing component with pipe #32

MartynenkoA opened this issue Aug 4, 2019 · 1 comment

Comments

@MartynenkoA
Copy link

MartynenkoA commented Aug 4, 2019

Trying to test component but have error
{{[ERROR ->] moment | amTimeAgo }}

The pipe 'amTimeAgo' could not be found ("}}

TestBed.configureTestingModule({
  declarations: [
    Component,
    TimeAgoPipe
  ]
})
  .compileComponents();

}));

How I can test component with it?

@Gilwyad
Copy link

Gilwyad commented Mar 28, 2020

@MartynenkoA the pipe is called timeAgo, not amTimeAgo.

        <td>{{email.date | timeAgo}}</td>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants