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
I'm not sure what the right answer, but wanted to report anyway. In our case, we're using ember-i18n, so the return type happens to be a SafeString from Ember's htmlSafe() util.
we often write assertions in ember-land like this:
This test fails because
i18n.t('Some.Key')
is not a string and a TypeError is thrown: https://github.com/simplabs/qunit-dom/blob/e2b3b4f4f82da36733ce659815e092e73ee1c598/lib/assertions.ts#L919-L921We work around this by changing the assertion to
I'm not sure what the right answer, but wanted to report anyway. In our case, we're using ember-i18n, so the return type happens to be a
SafeString
from Ember'shtmlSafe()
util.https://github.com/jamesarosen/ember-i18n/blob/6e4a999d4693e2b85fb99e8c6e34aca4b1670df2/addon/utils/i18n/compile-template.js#L24
The text was updated successfully, but these errors were encountered: