Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit f70ba97

Browse files
chalinkwalrath
authored andcommitted
example(architecture/dart): drop currency pipe workaround (#2804)
Fixes #1898
1 parent 52f6693 commit f70ba97

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

public/docs/_examples/architecture/dart/lib/sales_tax_component.dart

+1-4
Original file line numberDiff line numberDiff 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])

public/docs/_examples/architecture/e2e-spec.ts

+1-3
Original file line numberDiff line numberDiff 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 = /The sales tax is (\$|USD)1.00/;
76-
expect(page.salesTaxDetail.getText()).toMatch(re);
74+
expect(page.salesTaxDetail.getText()).toEqual('The sales tax is $1.00');
7775
});
7876
}
7977

0 commit comments

Comments
 (0)