Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit 71c2c8a

Browse files
committed
Set fixed btc unit in unit tests
1 parent 684f38d commit 71c2c8a

File tree

7 files changed

+7
-0
lines changed

7 files changed

+7
-0
lines changed

test/unit/action/channel.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ describe('Action Channels Unit Tests', () => {
2121
sandbox = sinon.createSandbox({});
2222
sandbox.stub(logger);
2323
store = new Store();
24+
store.settings.unit = 'btc';
2425
store.settings.displayFiat = false;
2526
require('../../../src/config').RETRY_DELAY = 1;
2627
grpc = sinon.createStubInstance(GrpcAction);

test/unit/action/invoice.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ describe('Action Invoice Unit Tests', () => {
1414

1515
beforeEach(() => {
1616
store = new Store();
17+
store.settings.unit = 'btc';
1718
store.settings.displayFiat = false;
1819
require('../../../src/config').RETRY_DELAY = 1;
1920
nav = sinon.createStubInstance(NavAction);

test/unit/action/payment.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ describe('Action Payments Unit Tests', () => {
2121
sandbox = sinon.createSandbox({});
2222
sandbox.stub(logger);
2323
store = new Store();
24+
store.settings.unit = 'btc';
2425
store.settings.displayFiat = false;
2526
require('../../../src/config').RETRY_DELAY = 1;
2627
require('../../../src/config').PAYMENT_TIMEOUT = 1;

test/unit/computed/channel.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ describe('Computed Channels Unit Tests', () => {
66

77
beforeEach(() => {
88
store = new Store();
9+
store.settings.unit = 'btc';
910
store.settings.displayFiat = false;
1011
store.channels.push({
1112
remotePubkey: 'some-pub-key',

test/unit/computed/invoice.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ describe('Computed Invoice Unit Tests', () => {
66

77
beforeEach(() => {
88
store = new Store();
9+
store.settings.unit = 'btc';
910
store.settings.displayFiat = false;
1011
});
1112

test/unit/computed/payment.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ describe('Computed Payment Unit Tests', () => {
66

77
beforeEach(() => {
88
store = new Store();
9+
store.settings.unit = 'btc';
910
store.settings.displayFiat = false;
1011
});
1112

test/unit/computed/transaction.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ describe('Computed Transactions Unit Tests', () => {
1515

1616
beforeEach(() => {
1717
store = new Store();
18+
store.settings.unit = 'btc';
1819
store.transactions.push(bitcoinTransaction);
1920
store.payments.push({
2021
id: '1',

0 commit comments

Comments
 (0)