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

How should controller actions be unit tested?

$
0
0

@Garrick wrote:

A controller action is passed to components as an action closure. The action returns a promise.

The guides demonstrate that actions can be tested via controller.send but that only triggers the action and does not return a value.

How should a controller action be unit tested?

Is unit testing the right approach?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4838

Trending Articles