You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.3 KiB
38 lines
1.3 KiB
import { PortfolioCalculatorFactory } from '@ghostfolio/api/app/portfolio/calculator/portfolio-calculator.factory';
|
|
import { CurrentRateService } from '@ghostfolio/api/app/portfolio/current-rate.service';
|
|
import { RedisCacheService } from '@ghostfolio/api/app/redis-cache/redis-cache.service';
|
|
import { ConfigurationService } from '@ghostfolio/api/services/configuration/configuration.service';
|
|
import { ExchangeRateDataService } from '@ghostfolio/api/services/exchange-rate-data/exchange-rate-data.service';
|
|
|
|
describe('PortfolioCalculator', () => {
|
|
let configurationService: ConfigurationService;
|
|
let currentRateService: CurrentRateService;
|
|
let exchangeRateDataService: ExchangeRateDataService;
|
|
let factory: PortfolioCalculatorFactory;
|
|
let redisCacheService: RedisCacheService;
|
|
|
|
beforeEach(() => {
|
|
configurationService = new ConfigurationService();
|
|
|
|
currentRateService = new CurrentRateService(null, null, null, null);
|
|
|
|
exchangeRateDataService = new ExchangeRateDataService(
|
|
null,
|
|
null,
|
|
null,
|
|
null
|
|
);
|
|
|
|
redisCacheService = new RedisCacheService(null, null);
|
|
|
|
factory = new PortfolioCalculatorFactory(
|
|
configurationService,
|
|
currentRateService,
|
|
exchangeRateDataService,
|
|
redisCacheService
|
|
);
|
|
});
|
|
|
|
test.skip('Skip empty test', () => 1);
|
|
});
|