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
Even though we have turned the mock config option on during testing, we still get an error about a missing method, update, when running our test suite:
Uncaught TypeError: Ember.get(...).update is not a function
I'm guessing this is just because that method isn't mocked in your StripeMock class and that's merely because you don't have any tests that try to update the attributes after rendering. Replacing your mock with our own copy which also mocks the update function makes our tests pass again.
The text was updated successfully, but these errors were encountered:
Even though we have turned the
mock
config option on during testing, we still get an error about a missing method,update
, when running our test suite:It's pointing to here:
ember-stripe-elements/addon/components/stripe-element.js
Lines 54 to 57 in 74540fc
I'm guessing this is just because that method isn't mocked in your
StripeMock
class and that's merely because you don't have any tests that try to update the attributes after rendering. Replacing your mock with our own copy which also mocks theupdate
function makes our tests pass again.The text was updated successfully, but these errors were encountered: