Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4831

Unit test that an action was called in an observer

$
0
0

@Bryan_Neill wrote:

I'm pretty new to unit testing so bear with me...

I have a simple observer that fires an action based on a boolean. How can I unit test that this.send was called? I want to test the actual action logic in a separate test.

Thanks!

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4831

Trending Articles