aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng/animationSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2013-03-20 16:24:23 -0700
committerMisko Hevery2013-04-02 14:05:06 -0700
commit0b6f1ce5f89f47f9302ff1e8cd8f4b92f837c413 (patch)
tree8cbc0c86024dd4f97d0aa54e0c9b7df9b0d56b86 /test/ng/animationSpec.js
parent4bfb66ce0be46d3a0e9da2f80f3e1d0c2b559828 (diff)
downloadangular.js-0b6f1ce5f89f47f9302ff1e8cd8f4b92f837c413.tar.bz2
feat(ngAnimate): add support for animation
Diffstat (limited to 'test/ng/animationSpec.js')
-rw-r--r--test/ng/animationSpec.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/ng/animationSpec.js b/test/ng/animationSpec.js
new file mode 100644
index 00000000..86592643
--- /dev/null
+++ b/test/ng/animationSpec.js
@@ -0,0 +1,15 @@
+'use strict';
+
+describe('$animation', function() {
+
+ it('should allow animation registration', function() {
+ var noopCustom = function(){};
+ module(function($animationProvider) {
+ $animationProvider.register('noop-custom', valueFn(noopCustom));
+ });
+ inject(function($animation) {
+ expect($animation('noop-custom')).toBe(noopCustom);
+ });
+ });
+
+});