refactor: retire legacy tbank-sync status and sync=observe (WealthLedger/backend#196)
This commit was merged in pull request #197.
This commit is contained in:
@@ -136,7 +136,7 @@ describe('Stock HTTP contract', () => {
|
||||
.get(`/api/v1/stocks/${uid}`)
|
||||
.set('Authorization', `Bearer ${token}`)
|
||||
.expect(200);
|
||||
expect(stocks.get).toHaveBeenCalledWith('stock-reader', uid, false);
|
||||
expect(stocks.get).toHaveBeenCalledWith('stock-reader', uid);
|
||||
});
|
||||
it.each(['SBERP', 'sberp', 'F', 'SBER@GS'])(
|
||||
'resolves ticker %s through the authenticated endpoint',
|
||||
@@ -154,7 +154,6 @@ describe('Stock HTTP contract', () => {
|
||||
expect(stocks.getByTicker).toHaveBeenCalledWith(
|
||||
'stock-reader',
|
||||
ticker,
|
||||
false,
|
||||
);
|
||||
},
|
||||
);
|
||||
@@ -186,7 +185,7 @@ describe('Stock HTTP contract', () => {
|
||||
.get('/api/v1/stocks?query=SBER')
|
||||
.set('Authorization', `Bearer ${token}`)
|
||||
.expect(200);
|
||||
expect(stocks.search).toHaveBeenCalledWith('stock-reader', 'SBER', false);
|
||||
expect(stocks.search).toHaveBeenCalledWith('stock-reader', 'SBER');
|
||||
expect(response.body).toEqual({
|
||||
data: [item],
|
||||
meta: { availability: 'complete' },
|
||||
|
||||
Reference in New Issue
Block a user