Skip to content

Commit

Permalink
Merge pull request #405 from wKoza/add-unit-test-check-pipe
Browse files Browse the repository at this point in the history
fix(test) : add unit test for check-pipe rule
  • Loading branch information
mgechev committed Sep 8, 2017
2 parents 0325d78 + 44c11d2 commit bef790b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/angularWhitespaceRule.spec.ts
Expand Up @@ -204,8 +204,26 @@ describe('angular-whitespace', () => {
`;
assertSuccess('angular-whitespace', source, ['check-pipe']);
});

it('should succeed with *ngIf and else condition', () => {
let source = `
@Component({
selector: 'foo',
template: \`
<div *ngIf="countingPoints$ | async as countingPoints; else countingPoinsAreLoading">
{{countingPoints}}
</div>
<ng-template #countingPoinsAreLoading>loading</ng-template>
\`
})
class Bar {}
`;
assertSuccess('angular-whitespace', source, ['check-pipe']);
});

});


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

it('should work with proper style', () => {
Expand Down

0 comments on commit bef790b

Please sign in to comment.