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:
@@ -125,14 +125,14 @@ describe('Bond HTTP contract', () => {
|
||||
.set('Authorization', `Bearer ${token}`)
|
||||
.expect(200);
|
||||
expect(response.body).toEqual(metrics);
|
||||
expect(bonds.metrics).toHaveBeenCalledWith('bond-reader', uid, false);
|
||||
expect(bonds.metrics).toHaveBeenCalledWith('bond-reader', uid);
|
||||
});
|
||||
it('uses verified identity and supports a direct instrument URL', async () => {
|
||||
await request(app.getHttpServer())
|
||||
.get(`/api/v1/bonds/${uid}`)
|
||||
.set('Authorization', `Bearer ${token}`)
|
||||
.expect(200);
|
||||
expect(bonds.get).toHaveBeenCalledWith('bond-reader', uid, false);
|
||||
expect(bonds.get).toHaveBeenCalledWith('bond-reader', uid);
|
||||
});
|
||||
it.each(['SU26238RMFS4', 'su26238rmfs4', 'F', 'SU26238RMFS4@GS'])(
|
||||
'resolves ticker %s through the authenticated endpoint',
|
||||
@@ -150,7 +150,6 @@ describe('Bond HTTP contract', () => {
|
||||
expect(bonds.getByTicker).toHaveBeenCalledWith(
|
||||
'bond-reader',
|
||||
ticker,
|
||||
false,
|
||||
);
|
||||
},
|
||||
);
|
||||
@@ -185,7 +184,6 @@ describe('Bond HTTP contract', () => {
|
||||
expect(bonds.search).toHaveBeenCalledWith(
|
||||
'bond-reader',
|
||||
'SU26238RMFS4',
|
||||
false,
|
||||
);
|
||||
expect(response.body).toEqual({
|
||||
data: [item],
|
||||
|
||||
Reference in New Issue
Block a user