Skip to content

Commit

Permalink
tests: added typechecking test for t() method
Browse files Browse the repository at this point in the history
  • Loading branch information
Romanchuk committed Jun 9, 2023
1 parent 6434dc9 commit be003cd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libs/angular-i18next/src/tests/service/I18NextService.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ describe('I18nService', () => {
});


it('should able to pass custom params (no typechecking errors)', () => {
const service: ITranslationService = TestBed.inject(I18NEXT_SERVICE);
service.t('some.string', {
hello: 'there',
});
});

/*
// does not work because language=cimode ignores default value
// setting language to anything other than 'cimode' breaks the rest of the tests
Expand Down

0 comments on commit be003cd

Please sign in to comment.