Skip to content

Commit

Permalink
fix(tslint): fix building issue when project's description exceeds 14…
Browse files Browse the repository at this point in the history
…0 chars

Closes #154
  • Loading branch information
tinesoft committed Apr 9, 2018
1 parent d1df8dc commit d69807e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/templates/src/module/component/_lib.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ describe('LibComponent', function () {
it('should have expected <p> text', () => {
fixture.detectChanges();
const p = de.nativeElement;
expect(p.textContent).toEqual('<%= projectDescription %>');
const description = '<%= projectDescription.length>=113 ? projectDescription.substring(0,110)+"..." : projectDescription %>';
expect(p.textContent).toEqual(description);
});
});
2 changes: 1 addition & 1 deletion app/templates/src/module/component/_lib.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ import { Component } from '@angular/core';
styleUrls: ['./lib.component.scss']
})
export class LibComponent {
description = '<%= projectDescription %>';
description = '<%= projectDescription.length>=121 ? projectDescription.substring(0,118)+"..." : projectDescription %>';
}

0 comments on commit d69807e

Please sign in to comment.