From 0ac9ec7b988e9bba08a546d1d1e546747f05461e Mon Sep 17 00:00:00 2001 From: Gadi Cohen Date: Mon, 8 Feb 2021 06:55:29 +0200 Subject: [PATCH] chore(tests): symbols.ts, testYf.ts --- tests/symbols.ts | 7 +++++++ tests/testYf.ts | 15 +++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 tests/symbols.ts create mode 100644 tests/testYf.ts diff --git a/tests/symbols.ts b/tests/symbols.ts new file mode 100644 index 00000000..727fdcc8 --- /dev/null +++ b/tests/symbols.ts @@ -0,0 +1,7 @@ +export const testSymbols = [ + 'AAPL', // NMS (Nasdaq) + 'OCDO.L', // LSE + 'BABA', // NYSE + 'QQQ', // ETF + '0P000071W8.TO', // Mutual Fund +]; diff --git a/tests/testYf.ts b/tests/testYf.ts new file mode 100644 index 00000000..6a0474b7 --- /dev/null +++ b/tests/testYf.ts @@ -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 + }; + +}