Created
January 13, 2014 20:49
-
-
Save knomedia/8407861 to your computer and use it in GitHub Desktop.
Ember Testing Options
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When attempting to test elements in Ember it seems like you have the following options | |
1. Spin up your Ember app and pluck of the parts you are trying to test: | |
App.__container__.lookup("controller:quizzes") | |
2. Build a container, register dependencies on it. | |
cont = new Em.Container() | |
cont.register('controller:quizzes', Em.Object) | |
quizController = App.QuizController.create({container: cont}) | |
3. Move logic to modules, test the modules in isolation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment