Skip to content

Commit

Permalink
chore(tests): symbols.ts, testYf.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
gadicc committed Feb 8, 2021
1 parent d8dc750 commit 0ac9ec7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/symbols.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export const testSymbols = [
'AAPL', // NMS (Nasdaq)
'OCDO.L', // LSE
'BABA', // NYSE
'QQQ', // ETF
'0P000071W8.TO', // Mutual Fund
];
15 changes: 15 additions & 0 deletions tests/testYf.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import _env from '../src/env-node';
import _opts from '../src/lib/options';
import _fetch from '../src/lib/yahooFinanceFetch';
import _moduleExec from '../src/lib/moduleExec';

export default function genYf(extend: object): any {
return {
_env,
_opts,
_fetch,
_moduleExec,
...extend
};

}

0 comments on commit 0ac9ec7

Please sign in to comment.