Skip to content

Commit

Permalink
fix(rules): Add i18n test for #497 (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
wKoza authored and mgechev committed Mar 25, 2018
1 parent 7d0eaf6 commit 8e7e875
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/i18nRule.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,20 @@ describe('i18n', () => {
assertSuccess('i18n', source, ['check-text']);
});

it('should work with input and text', () => {
const source = `
@Component({
template: \`
<label class="checkbox-inline" i18n="Bearbeiten eines Artikels|Veröffentlichung im Internet?">
<input name="article.publish" [(ngModel)]="article.publish" role="edit" type="checkbox">
Veröffentlichen
</label>
\`
})
class Bar {}`;
assertSuccess('i18n', source, ['check-text']);
});

it('should work with plural', () => {
const source = `
@Component({
Expand Down

0 comments on commit 8e7e875

Please sign in to comment.