golden-retriever
Version:
Asynchronous dogs for the good boy's web
16 lines (13 loc) • 459 B
JavaScript
const goldenRetriever = require('../src/index');
test('Requests a puppy', async function() {
const results = await goldenRetriever.fetch(
'https://i.ytimg.com/vi/a6KGPBflhiM/hqdefault.jpg'
);
expect(results).toBeDefined();
});
test('Renders a good boy', async function() {
const goodboye = await goldenRetriever.fetch(
'https://i.ytimg.com/vi/a6KGPBflhiM/hqdefault.jpg'
);
const element = goldenRetriever.renderMeAGoodBoy(goodboye);
});