HaithemMosbahi/ngx-avatar

Cover the component with unit test

HaithemMosbahi opened this issue · 4 comments

In order to improve the component code and to reduce potential bugs and also to make it easy to maintain we need to cover the ngx-avatar component with unit test.

I'm working on this one, I started by refactoring / covering the avatar.service. Here's the branch

should be closed when this branch gets merged #46

I think it's ready, isn't it?

I still need to cover some scenarios in the avatar.component.spec.ts
The goal is to cover the maximum features to avoid bugs / regression. I think after that we will be able to confidently auto publish to npm when we merge to master