UNPKG

yopmail

Version:
25 lines (22 loc) 474 B
const test = require('tape'); const yopmail = require('../'); test('mails', t => { t.plan(1); yopmail('dio') .then(({mails}) => { t.equal(mails.length > 0, true); }) .catch((err) => { // break! }); }); test('found', t => { t.plan(1); yopmail('dio', 'ontvangen') .then(({found}) => { t.equal(found, true); }) .catch((err) => { // break! }); });