Component tests for like button

This commit is contained in:
Robin Ward
2015-07-14 14:23:56 -04:00
parent 7a58d64f37
commit fcfcda099f
4 changed files with 715 additions and 10 deletions

View File

@@ -15,10 +15,12 @@ export const Button = function(action, label, icon, opts) {
};
function animateHeart($elem, start, end, complete) {
if (Ember.testing) { return Ember.run(this, complete); }
$elem.stop()
.css('textIndent', start)
.animate({ textIndent: end }, {
complete: complete,
complete,
step(now) {
$(this).css('transform','scale('+now+')');
},