diff options
| author | Misko Hevery | 2013-03-20 16:24:23 -0700 |
|---|---|---|
| committer | Misko Hevery | 2013-04-02 14:05:06 -0700 |
| commit | 0b6f1ce5f89f47f9302ff1e8cd8f4b92f837c413 (patch) | |
| tree | 8cbc0c86024dd4f97d0aa54e0c9b7df9b0d56b86 /test/ng/animationSpec.js | |
| parent | 4bfb66ce0be46d3a0e9da2f80f3e1d0c2b559828 (diff) | |
| download | angular.js-0b6f1ce5f89f47f9302ff1e8cd8f4b92f837c413.tar.bz2 | |
feat(ngAnimate): add support for animation
Diffstat (limited to 'test/ng/animationSpec.js')
| -rw-r--r-- | test/ng/animationSpec.js | 15 |
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); + }); + }); + +}); |
