mwootendev / ngx-translate-plugins

Utilities plugins for the @ngx-translate translation library.
MIT License
15 stars 10 forks source link

readme: Added usage for TranslateService #4

Closed andyhammar closed 2 years ago

andyhammar commented 5 years ago

Added a usage block that describes how to provide the TranslateService in tests.

I hope this is the correct and best way to use it, please advice if not so.

dsnoeck commented 5 years ago

Would be great to have also example on how to setup and assert call to TranslateService, like: expect(translateService.use).toHaveBeenCalledWith('fr'); I'm looking for some help.

mwootendev commented 2 years ago

I don't believe this documentation accurately reflected the intended use.