UNPKG

yopmail-helper

Version:

yopmail helper. It will help you receive the mail content.

20 lines (17 loc) 567 B
const {getInbox} = require('../../utils/inbox/inbox'); const {delay} = require('../../utils/delay/delays'); describe('inbox', () => { beforeEach(async () => { await delay(); }); it('Should able to get yopmail inbox', async () => { const inbox = await getInbox('admin01'); expect(Array.isArray(inbox)).toBe(true); if (inbox.length > 0) { expect(inbox[0]).toHaveProperty('id'); expect(inbox[0]).toHaveProperty('title'); expect(inbox[0]).toHaveProperty('summary'); expect(inbox[0]).toHaveProperty('time'); } }); });