Created
October 20, 2014 10:08
-
-
Save zzarcon/d349e0f21f7e7c81813b to your computer and use it in GitHub Desktop.
Components tests
This file contains hidden or 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
var view; | |
module('Computed properties', { | |
setup: function() { | |
view = Ember.View.create({ | |
template: Ember.Handlebars.compile( | |
'{{my-component name="hector"}}' | |
) | |
}); | |
}, | |
teardown: function() { | |
App.reset(); | |
} | |
}); | |
test('', function(assert) { | |
assert.equal(view.$().contains('Hector'), true); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to add the view to the DOM in order to evaluate
view.$()
and$().contains
doesn't exist: