mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 03:30:02 +08:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user