Skip to content

Commit e7ca208

Browse files
committed
fix(rules) : add test for banana-in-a-box rule
1 parent e5b5140 commit e7ca208

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/bananaInBoxRule.spec.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,19 @@ describe('banana-in-box', () => {
1616

1717
});
1818

19+
describe('success', () => {
20+
it('should work with proper style', () => {
21+
let source = `
22+
@Component({
23+
template: \` <a (click)="navigate(['/resources'])"> \`
24+
})
25+
class Bar {}
26+
`;
27+
assertSuccess('banana-in-box', source);
28+
});
29+
});
30+
31+
1932
describe('failure', () => {
2033
it('should fail when the box is in the banana', () => {
2134
let source = `

0 commit comments

Comments
 (0)