Skip to content

Commit a6ee5ce

Browse files
committed
tests: mocking network on getconfig
1 parent d88e867 commit a6ee5ce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/daemon/__tests__/integration/balances.test.ts

+4
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ import getConfig from '../../src/config';
4242

4343
// @ts-ignore
4444
getConfig.mockReturnValue({
45+
NETWORK: 'testnet',
4546
SERVICE_NAME: 'daemon-test',
4647
CONSOLE_LEVEL: 'debug',
4748
TX_CACHE_SIZE: 100,
@@ -85,6 +86,7 @@ describe('unvoided transaction scenario', () => {
8586
it('should do a full sync and the balances should match', async () => {
8687
// @ts-ignore
8788
getConfig.mockReturnValue({
89+
NETWORK: 'testnet',
8890
SERVICE_NAME: 'daemon-test',
8991
CONSOLE_LEVEL: 'debug',
9092
TX_CACHE_SIZE: 100,
@@ -133,6 +135,7 @@ describe('reorg scenario', () => {
133135
it('should do a full sync and the balances should match', async () => {
134136
// @ts-ignore
135137
getConfig.mockReturnValue({
138+
NETWORK: 'testnet',
136139
SERVICE_NAME: 'daemon-test',
137140
CONSOLE_LEVEL: 'debug',
138141
TX_CACHE_SIZE: 100,
@@ -181,6 +184,7 @@ describe('single chain blocks and transactions scenario', () => {
181184
it('should do a full sync and the balances should match', async () => {
182185
// @ts-ignore
183186
getConfig.mockReturnValue({
187+
NETWORK: 'testnet',
184188
SERVICE_NAME: 'daemon-test',
185189
CONSOLE_LEVEL: 'debug',
186190
TX_CACHE_SIZE: 100,

0 commit comments

Comments
 (0)