Switch from ETH/WBTC to RBTC/BTC
This commit is contained in:
@@ -6,15 +6,15 @@ import { hbs } from 'ember-cli-htmlbars';
|
||||
module('Integration | Helper | fmt-crypto-currency', function(hooks) {
|
||||
setupRenderingTest(hooks);
|
||||
|
||||
test('it converts Wei to ETH', async function(assert) {
|
||||
this.set('balanceETH', '500000000000000000');
|
||||
await render(hbs`{{fmt-crypto-currency balanceETH "ETH"}}`);
|
||||
test('it converts Wei to RBTC', async function(assert) {
|
||||
this.set('balanceRBTC', '500000000000000000');
|
||||
await render(hbs`{{fmt-crypto-currency balanceRBTC "RBTC"}}`);
|
||||
assert.equal(this.element.textContent.trim(), '0.5');
|
||||
});
|
||||
|
||||
test('it converts Satoshis to (W)BTC', async function(assert) {
|
||||
this.set('balanceWBTC', '117214976');
|
||||
await render(hbs`{{fmt-crypto-currency balanceWBTC "WBTC"}}`);
|
||||
test('it converts Satoshis to BTC', async function(assert) {
|
||||
this.set('balanceBTC', '117214976');
|
||||
await render(hbs`{{fmt-crypto-currency balanceBTC "BTC"}}`);
|
||||
assert.equal(this.element.textContent.trim(), '1.17214976');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user