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

example(architecture/dart): drop currency pipe workaround #2804

Merged
merged 1 commit into from
Nov 15, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ import 'tax_rate_service.dart';

<div *ngIf="amountBox.value != ''">
The sales tax is
{{ getTax(amountBox.value) | currency:'USD':false:'1.2-2' }}
<!-- would like to write currency:'USD':true:'1.2-2' but
currency as symbol is not currently supported; see
https://github.com/dart-lang/intl/issues/59 -->
{{ getTax(amountBox.value) | currency:'USD':true:'1.2-2' }}
</div>
''',
providers: const [SalesTaxService, TaxRateService])
Expand Down
4 changes: 1 addition & 3 deletions public/docs/_examples/architecture/e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ function salesTaxTests() {
it('shows sales tax', async function () {
let page = getPageElts();
page.salesTaxAmountInput.sendKeys('10', protractor.Key.ENTER);
// Note: due to Dart bug USD is shown instead of $
let re = /The sales tax is (\$|USD)1.00/;
expect(page.salesTaxDetail.getText()).toMatch(re);
expect(page.salesTaxDetail.getText()).toEqual('The sales tax is $1.00');
});
}

Expand Down