We now have access to all our locale data in unit tests if they helps?

On Mar 12, 2013, at 8:24 PM, Kevin Grandon <notifications@github.com> wrote:

> In apps/calendar/test/unit/views/view_event_test.js:
> 
> > +      event.remote.alarms = [
> > +        {trigger: 0},
> > +        {trigger: -60}
> > +      ];
> > +
> > +      subject.onfirstseen();
> > +      subject.useModel(busytime, event, function() {
> > +
> > +        var alarmChildren = getEl('alarms').querySelector('.content').children;
> > +
> > +        assert.equal(
> > +          alarmChildren.length,
> > +          2
> > +        );
> > +
> > +        assert.ok(alarmChildren[0].textContent);
> As we're checking on view content, there's no real way to do this due to the fact that this is localized content. We could potentially add extra attributes to the DOM so we know for sure, but I'd rather not add this extra stuff just for the sake of testing this.
> 
> —
> Reply to this email directly or view it on GitHub.