T-57: merge dev
This commit is contained in:
commit
025ab8537c
7 changed files with 3342 additions and 16 deletions
|
|
@ -90,7 +90,7 @@ async function ingest(mongodb: MongoDBClient, bars = intradayResponse()) {
|
|||
return Response.json(bars);
|
||||
};
|
||||
const previousToken = EOD_CONFIG.API_TOKEN;
|
||||
EOD_CONFIG.API_TOKEN = 'test-fixture-token';
|
||||
EOD_CONFIG.API_TOKEN = 'test-eod-fixture-token';
|
||||
const request = spyOn(globalThis, 'fetch').mockImplementation(
|
||||
Object.assign(fakeFetch, { preconnect: globalThis.fetch.preconnect })
|
||||
);
|
||||
|
|
@ -102,8 +102,8 @@ async function ingest(mongodb: MongoDBClient, bars = intradayResponse()) {
|
|||
toDate: end,
|
||||
});
|
||||
} finally {
|
||||
EOD_CONFIG.API_TOKEN = previousToken;
|
||||
request.mockRestore();
|
||||
EOD_CONFIG.API_TOKEN = previousToken;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue