Unit tests for case controllers and directives

It is probably safer to use a class if its a directive template, since you can only have one unique ID the DOM and directives are by definition reusable components that could be used multiple  times in the same page.




> On Aug 7, 2014, at 11:10 AM, sshumake <notifications@github.com> wrote:
> 
> In app/cases/views/commentsSection.jade:
> 
> > @@ -10,7 +10,7 @@ div.container-fluid.rha-side-padding(ng-hide='loading')
> >        button.btn.btn-secondary(
> >          style='display: inline-block', 
> >          ng-click='requestManagementEscalation()', translate='') Request Management Escalation
> > -  div(ng-hide='CaseService.comments.length <= 0 || CaseService.comments === undefined', style='border-top: 1px solid #dddddd;')
> > +  div.rha-comments-section(ng-hide='CaseService.comments.length <= 0 || CaseService.comments === undefined', style='border-top: 1px solid #dddddd;')
> Is it best to add "rha-comments-section" as a class? It seems to me this would be better as an "id"?
> 
> —
> Reply to this email directly or view it on GitHub.