File tree 2 files changed +2
-7
lines changed
public/docs/_examples/architecture
2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,7 @@ import 'tax_rate_service.dart';
11
11
12
12
<div *ngIf="amountBox.value != ''">
13
13
The sales tax is
14
- {{ getTax(amountBox.value) | currency:'USD':false:'1.2-2' }}
15
- <!-- would like to write currency:'USD':true:'1.2-2' but
16
- currency as symbol is not currently supported; see
17
- https://github.com/dart-lang/intl/issues/59 -->
14
+ {{ getTax(amountBox.value) | currency:'USD':true:'1.2-2' }}
18
15
</div>
19
16
''' ,
20
17
providers: const [SalesTaxService , TaxRateService ])
Original file line number Diff line number Diff line change @@ -71,9 +71,7 @@ function salesTaxTests() {
71
71
it ( 'shows sales tax' , async function ( ) {
72
72
let page = getPageElts ( ) ;
73
73
page . salesTaxAmountInput . sendKeys ( '10' , protractor . Key . ENTER ) ;
74
- // Note: due to Dart bug USD is shown instead of $
75
- let re = / T h e s a l e s t a x i s ( \$ | U S D ) 1 .0 0 / ;
76
- expect ( page . salesTaxDetail . getText ( ) ) . toMatch ( re ) ;
74
+ expect ( page . salesTaxDetail . getText ( ) ) . toEqual ( 'The sales tax is $1.00' ) ;
77
75
} ) ;
78
76
}
79
77
You can’t perform that action at this time.
0 commit comments