Skip to content

Commit

Permalink
[EI-264] [api] fix: add values field test
Browse files Browse the repository at this point in the history
  • Loading branch information
maro5397 committed Oct 1, 2024
1 parent 8da4bde commit 12c49a2
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,14 @@ describe('IndicatorFredAdapter', () => {
expectedFields.forEach((field) => {
expect(result).toHaveProperty(field);
});

const expectedValuesFieldCount = 2;
const actualValuesFieldCount = Object.keys(result.values[0]).length;
expect(actualValuesFieldCount).toEqual(expectedValuesFieldCount);

const expectedValuesFields = ['date', 'value'];
expectedValuesFields.forEach((field) => {
expect(result.values[0]).toHaveProperty(field);
});
}, 15000);
});

0 comments on commit 12c49a2

Please sign in to comment.