From fd822bdaf9d04e522aaa5400b673f333190abe98 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Fri, 7 Oct 2011 11:27:49 -0700 Subject: chore(formating): clean code to be function() { --- src/filters.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/filters.js') diff --git a/src/filters.js b/src/filters.js index 0fcd442b..e4ee7453 100644 --- a/src/filters.js +++ b/src/filters.js @@ -49,7 +49,7 @@ @@ -60,11 +60,11 @@ - it('should init with 1234.56', function(){ + it('should init with 1234.56', function() { expect(binding('amount | currency')).toBe('$1,234.56'); expect(binding('amount | currency:"USD$"')).toBe('USD$1,234.56'); }); - it('should update', function(){ + it('should update', function() { input('amount').enter('-1234'); expect(binding('amount | currency')).toBe('($1,234.00)'); expect(binding('amount | currency:"USD$"')).toBe('(USD$1,234.00)'); @@ -101,7 +101,7 @@ angularFilter.currency = function(amount, currencySymbol){ @@ -113,13 +113,13 @@ angularFilter.currency = function(amount, currencySymbol){ - it('should format numbers', function(){ + it('should format numbers', function() { expect(binding('val | number')).toBe('1,234.568'); expect(binding('val | number:0')).toBe('1,235'); expect(binding('-val | number:4')).toBe('-1,234.5679'); }); - it('should update', function(){ + it('should update', function() { input('val').enter('3374.333'); expect(binding('val | number')).toBe('3,374.333'); expect(binding('val | number:0')).toBe('3,374'); @@ -336,7 +336,7 @@ var GET_TIME_ZONE = /[A-Z]{3}(?![+\-])/, {{'1288323623006' | date:'MM/dd/yyyy @ h:mma'}}
- it('should format date', function(){ + it('should format date', function() { expect(binding("1288323623006 | date:'medium'")). toMatch(/Oct 2\d, 2010 \d{1,2}:\d{2}:\d{2} (AM|PM)/); expect(binding("1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'")). @@ -477,7 +477,7 @@ angularFilter.uppercase = uppercase;