mirror of https://github.com/ghostfolio/ghostfolio
Browse Source
* Refactor search functionality * Update changelog * Improvements after code reviewpull/108/head
committed by
GitHub
15 changed files with 133 additions and 88 deletions
@ -1,4 +1,7 @@ |
|||||
|
import { DataSource } from '@prisma/client'; |
||||
|
|
||||
export interface LookupItem { |
export interface LookupItem { |
||||
|
dataSource: DataSource; |
||||
name: string; |
name: string; |
||||
symbol: string; |
symbol: string; |
||||
} |
} |
||||
|
@ -1,24 +0,0 @@ |
|||||
/* |
|
||||
import { Test } from '@nestjs/testing'; |
|
||||
|
|
||||
import { YahooFinanceService } from './yahoo-finance.service'; |
|
||||
|
|
||||
describe('AppService', () => { |
|
||||
let service: YahooFinanceService; |
|
||||
|
|
||||
beforeAll(async () => { |
|
||||
const app = await Test.createTestingModule({ |
|
||||
imports: [], |
|
||||
providers: [YahooFinanceService] |
|
||||
}).compile(); |
|
||||
|
|
||||
service = app.get<YahooFinanceService>(YahooFinanceService); |
|
||||
}); |
|
||||
|
|
||||
describe('get', () => { |
|
||||
it('should return data for USDCHF', () => { |
|
||||
expect(service.get(['USDCHF'])).toEqual('{}'); |
|
||||
}); |
|
||||
}); |
|
||||
}); |
|
||||
*/ |
|
Loading…
Reference in new issue