diff options
| author | Vojta Jina | 2011-09-07 09:19:53 +0200 |
|---|---|---|
| committer | Vojta Jina | 2011-09-08 17:59:52 +0200 |
| commit | fc2f188d4d8f06aab31979b293d95580e19cbdf1 (patch) | |
| tree | 98eb3e9d69741afd016c5e56330fa52de8a8034d /test/FiltersSpec.js | |
| parent | 4b1913c5ecac75e60e7a0de831100b6961d5d294 (diff) | |
| download | angular.js-fc2f188d4d8f06aab31979b293d95580e19cbdf1.tar.bz2 | |
style(filter): Couple of missing spaces, semi-colons, add empty lines
Diffstat (limited to 'test/FiltersSpec.js')
| -rw-r--r-- | test/FiltersSpec.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/FiltersSpec.js b/test/FiltersSpec.js index 83d8aac0..672540c5 100644 --- a/test/FiltersSpec.js +++ b/test/FiltersSpec.js @@ -96,6 +96,7 @@ describe('filter', function() { dealoc(context); }); + it('should do basic currency filtering', function() { expect(currency(0)).toEqual('$0.00'); expect(html.hasClass('ng-format-negative')).toBeFalsy(); @@ -105,6 +106,7 @@ describe('filter', function() { expect(html.hasClass('ng-format-negative')).toBeFalsy(); }); + it('should return empty string for non-numbers', function() { expect(currency()).toBe(''); expect(html.hasClass('ng-format-negative')).toBeFalsy(); @@ -113,6 +115,7 @@ describe('filter', function() { }); }); + describe('number', function() { var context, number; |
