BTC ticker: round amount, remove byline
This commit is contained in:
1 parent
753bcccbf6
commit
4f2abe6eab
2 files changed
+2
-3
No files matched your search
@@ -11,6 +11,7 @@ export default class BitcoinTickerComponent extends Component {
|
||||
return new Intl.NumberFormat('en-US', {
|
||||
style: 'currency',
|
||||
currency: 'USD',
|
||||
maximumFractionDigits: 0,
|
||||
}).format(this.bitcoin.price);
|
||||
}
|
||||
|
||||
@@ -48,7 +49,6 @@ export default class BitcoinTickerComponent extends Component {
|
||||
<span class="sr-only">{{if this.isUp "up" "down"}}</span>
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="text-xs uppercase tracking-wide opacity-80">Bitcoin</div>
|
||||
{{#if this.bitcoin.error}}
|
||||
<div class="text-xs text-red-300">{{this.bitcoin.error}}</div>
|
||||
{{/if}}
|
||||
|
||||
@@ -33,10 +33,9 @@ module('Integration | Component | bitcoin-ticker', function (hooks) {
|
||||
|
||||
await render(<template><BitcoinTicker /></template>);
|
||||
|
||||
assert.dom().containsText('$86,246.18');
|
||||
assert.dom().containsText('$86,246');
|
||||
assert.dom('[data-direction="up"]').exists();
|
||||
assert.dom('.text-green-400').exists();
|
||||
assert.dom().containsText('Bitcoin');
|
||||
assert.dom().doesNotContainText('%');
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user