Skip to content

Commit 86e345d

Browse files
committed
CUC currency as historical
- unit tests
1 parent e431b04 commit 86e345d

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

__tests__/getIso4217Currencies.test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe('getIso4217Currencies', () => {
3636

3737
test('Caribbean Guilder (XCG) is returned', () => {
3838
const countries = getIso4217Currencies("2025-03-31");
39-
expect(countries).toHaveLength(180);
39+
expect(countries).toHaveLength(179);
4040
expect(countries.find(x => x.alpha3Code === "XCG")).toBeDefined();
4141
expect(countries.find(x => x.alpha3Code === "ANG")).toBeUndefined();
4242
});
@@ -71,6 +71,12 @@ describe('getIso4217Currencies', () => {
7171
expect(countries1 === countries2).toBeTruthy();
7272
});
7373

74+
test('Peso Convertible (CUC) currency is not returned', () => {
75+
const countries = getIso4217Currencies("2025-02-25");
76+
expect(countries).toHaveLength(179);
77+
expect(countries.find(x => x.alpha3Code === "CUC")).toBeUndefined();
78+
});
79+
7480
test('no duplicates for property alpha3Code', () => {
7581
expect(isArrayUnique(iso4217Currencies.map(x => x.alpha3Code))).toBeTruthy();
7682
});

0 commit comments

Comments
 (0)