Skip to content

Commit

Permalink
fix(rules): add test case for i18n & check-pipe
Browse files Browse the repository at this point in the history
Fix #359
  • Loading branch information
mgechev committed Jul 1, 2017
1 parent 77965af commit 5aad7f3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/angularWhitespaceRule.spec.ts
Expand Up @@ -137,6 +137,19 @@ describe('angular-whitespace', () => {
`;
assertSuccess('angular-whitespace', source, ['check-pipe']);
});

it('should succeed with i18n and description', () => {
let source = `
@Component({
selector: 'foo',
template: \`
<h1 i18n="site header|An introduction header for this sample">Hello i18n!</h1>
\`
})
class Bar {}
`;
assertSuccess('angular-whitespace', source, ['check-pipe']);
});
});

describe('check-semicolon', () => {
Expand Down

0 comments on commit 5aad7f3

Please sign in to comment.