feat(currencyFilter): add fractionSize as optional parameter

currencyFilter accepts number of decimals to round off to

Closes #3642
Closes #3461
Closes #3642
Closes #7922
This commit is contained in:
Rahul Doshi
2014-06-20 10:34:54 -07:00
committed by Igor Minar
parent 9ba24c54d6
commit 20685ffe11
2 changed files with 15 additions and 3 deletions

View File

@@ -101,6 +101,7 @@ describe('filters', function() {
expect(currency(0)).toEqual('$0.00');
expect(currency(-999)).toEqual('($999.00)');
expect(currency(1234.5678, "USD$")).toEqual('USD$1,234.57');
expect(currency(1234.5678, "USD$", 0)).toEqual('USD$1,235');
});
it('should pass through null and undefined to be compatible with one-time binding', function() {