This repository was archived by the owner on Dec 4, 2017. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
public/docs/_examples/architecture Expand file tree Collapse file tree 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';
1111
1212 <div *ngIf="amountBox.value != ''">
1313 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' }}
1815 </div>
1916 ''' ,
2017 providers: const [SalesTaxService , TaxRateService ])
Original file line number Diff line number Diff line change @@ -71,9 +71,7 @@ function salesTaxTests() {
7171 it ( 'shows sales tax' , async function ( ) {
7272 let page = getPageElts ( ) ;
7373 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' ) ;
7775 } ) ;
7876}
7977
You can’t perform that action at this time.
0 commit comments