import {
describe,
it,
expect
} from "@olton/easytest";
function fetchData() {
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve('peanut butter');
}, 1000);
});
}
describe(`Async tests`, () => {
it(`fetchData returns peanut butter`, async () => {
const data = await fetchData();
expect(data).toBe('peanut butter');
})
})