aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng/animationSpec.js
diff options
context:
space:
mode:
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);
+ });
+ });
+
+});