yopmail
Version:
Check your yopmail inbox
25 lines (22 loc) • 474 B
JavaScript
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!
});
});