You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use a single-underscore helper for localization. This works fine. The problem is that unit tests fail. Even when I specify needs: ['helper:_'], it still complains that it cannot find the helper. Is there something special about the _? When I replace _ everywhere with gettext, things work fine.
The text was updated successfully, but these errors were encountered:
In general (aside from a bug in the globals resolver causing the demo to use App.Helper instead of App._Helper) this seems to work properly: http://rwjblue.jsbin.com/puhuji in both a component integration test and a component unit test.
Please provide a minimal reproduction (demo ember-cli repo is perfect) showing the issue you are having.
It is also possible that this is suffering from the issue that emberjs/ember-test-helpers#113 is fixing (essentially that the resolver is not properly normalizing), but it is going to be very hard to isolate/track down (if that PR doesn't "magically" fix the issue) without a reproduction.
We use a single-underscore helper for localization. This works fine. The problem is that unit tests fail. Even when I specify
needs: ['helper:_']
, it still complains that it cannot find the helper. Is there something special about the_
? When I replace_
everywhere withgettext
, things work fine.The text was updated successfully, but these errors were encountered: