Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/mgechev/codelyzer
Browse files Browse the repository at this point in the history
* 'master' of https://github.com/mgechev/codelyzer:
  test: add failing test for check-pipe in ngFor
  • Loading branch information
mgechev committed Jul 1, 2017
2 parents fa08a3b + 45f90e3 commit 8a24aed
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/angularWhitespaceRule.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,21 @@ describe('angular-whitespace', () => {
const ast = getAst(code, __dirname + '/../../test/fixtures/angularWhitespace/component.ts');
assertSuccess('angular-whitespace', ast, ['check-pipe']);
});

it('should succeed with ngFor', () => {
let source = `
@Component({
selector: 'foo',
template: \`
<div *ngFor="let pony of ponies | slice:0:1">{{ pony }}</div>
\`
})
class Bar {
ponies = [];
}
`;
assertSuccess('angular-whitespace', source, ['check-pipe']);
});
});

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

0 comments on commit 8a24aed

Please sign in to comment.