Skip to content

Commit 597f9c0

Browse files
committed
feat(currencyFilter): add fractionSize as optional parameter
currencyFilter accepts number of decimals to round off to Closes angular#3642
1 parent 08785e0 commit 597f9c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/filter/filters.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
element(by.model('amount')).sendKeys('-1234');
4747
expect(element(by.id('currency-default')).getText()).toBe('($1,234.00)');
4848
expect(element(by.binding('amount | currency:"USD$"')).getText()).toBe('(USD$1,234.00)');
49-
expect(element(by,binding('amount | currency:"USD$":0')).getText()).toBe('(USD$1,234)');
49+
expect(element(by.binding('amount | currency:"USD$":0')).getText()).toBe('(USD$1,234)');
5050
});
5151
</file>
5252
</example>

0 commit comments

Comments
 (0)