banks-ng
Version:
A collection of nigerian bank information
22 lines (21 loc) • 749 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const expect_1 = require("expect");
const getBanks_1 = require("./getBanks");
describe('Get Banks', () => {
it('should get a single list of bank names', () => {
const list = (0, getBanks_1.getBanks)();
(0, expect_1.expect)(list).toEqual(expect_1.expect.arrayContaining([
expect_1.expect.objectContaining({
id: 0,
name: 'Abbey Mortgage Bank',
logo: expect_1.expect.any(String)
}),
expect_1.expect.objectContaining({
id: 1,
name: 'Above Only MFB',
logo: expect_1.expect.any(String)
})
]));
});
});