nft-random-profile
Version:
get random nft pfp
32 lines • 1.27 kB
JavaScript
// const { getImage } = require('../index');
// const { Options } = require('../types');
// describe('getImage', () => {
// let options: Options;
// beforeEach(() => {
// options = {
// address: '0x06fd3999fa72163c6f21f649587e6b6d670cdc8b',
// tokenId: '1010',
// network: 'mainnet'
// };
// });
// it('should return an image URL when given valid options', async () => {
// const imageUrl = await getImage(options);
// expect(imageUrl).toBeDefined();
// });
// it('should return undefined when given an invalid address', async () => {
// options.address = 'invalid address';
// const imageUrl = await getImage(options);
// expect(imageUrl).toBeUndefined();
// });
// it('should return undefined when given an invalid network', async () => {
// options.network = 'invalid network';
// const imageUrl = await getImage(options);
// expect(imageUrl).toBeUndefined();
// });
// it('should return undefined when given a non-existent token ID', async () => {
// options.tokenId = '9999';
// const imageUrl = await getImage(options);
// expect(imageUrl).toBeUndefined();
// });
// });
//# sourceMappingURL=getImage.test.js.map