feat(stocks): Add unified stock data API (getData) with historical/OHLCV support, smart caching and provider enhancements
This commit is contained in:
13
test/test.ts
13
test/test.ts
@@ -1,12 +1,23 @@
|
||||
import { expect, tap } from '@git.zone/tstest/tapbundle';
|
||||
import * as opendata from '../ts/index.js'
|
||||
import * as paths from '../ts/paths.js';
|
||||
import * as plugins from '../ts/plugins.js';
|
||||
|
||||
import { BusinessRecord } from '../ts/classes.businessrecord.js';
|
||||
|
||||
// Test configuration - explicit paths required
|
||||
const testNogitDir = plugins.path.join(paths.packageDir, '.nogit');
|
||||
const testDownloadDir = plugins.path.join(testNogitDir, 'downloads');
|
||||
const testGermanBusinessDataDir = plugins.path.join(testNogitDir, 'germanbusinessdata');
|
||||
|
||||
let testOpenDataInstance: opendata.OpenData;
|
||||
|
||||
tap.test('first test', async () => {
|
||||
testOpenDataInstance = new opendata.OpenData();
|
||||
testOpenDataInstance = new opendata.OpenData({
|
||||
nogitDir: testNogitDir,
|
||||
downloadDir: testDownloadDir,
|
||||
germanBusinessDataDir: testGermanBusinessDataDir
|
||||
});
|
||||
expect(testOpenDataInstance).toBeInstanceOf(opendata.OpenData);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user