angular-cn/packages/common/test/pipes
Hayouung ca1bc7e80b feat(common): allow default currency code to be configurable (#32584)
Default currency code in CurrencyPipe is currently hardcoded to USD
and is not configurable. This commit allows the default currency code
to be configurable by adding a DEFAULT_CURRENCY_CODE injection token.

Example:
```
providers: [{ provide: DEFAULT_CURRENCY_CODE, useValue: "GBP" }]
...
{{ 123.45 | currency }} // outputs £123.45 as opposed to always $123.45 before
```

Closes: #25461

PR Close #32584
2020-01-13 09:57:06 -08:00
..
async_pipe_spec.ts style: enforce disallowance of object constructor (#33211) 2019-12-03 10:08:25 -08:00
case_conversion_pipes_spec.ts fix(common): titlecase pipe (#22600) 2018-03-23 13:42:51 -04:00
date_pipe_spec.ts refactor(common): move the low level locale registering to core (#33523) 2019-11-05 17:26:59 +00:00
i18n_plural_pipe_spec.ts build: remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
i18n_select_pipe_spec.ts build: remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
json_pipe_spec.ts build: remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
keyvalue_pipe_spec.ts refactor: fix typescript strict flag failures in all tests (#30993) 2019-07-18 14:21:26 -07:00
number_pipe_spec.ts feat(common): allow default currency code to be configurable (#32584) 2020-01-13 09:57:06 -08:00
slice_pipe_spec.ts feat(common): stricter types for SlicePipe (#30156) 2019-05-17 14:21:36 -07:00