UNPKG

node-email-verificator

Version:

A simple way of email confirmation by sending a confirmation code to the client for verificatiion

20 lines (16 loc) 555 B
const nev = require('../index'); test('Type of nev is object', () => { expect(typeof nev).toBe('object'); }) test('config function is Defined', () => { expect(nev.config('gmail', 'example@gmail.com', 'password')).toBeDefined() }) test('send function is Defined', () => { expect(nev.send('email@email.com')).toBeDefined() }) test('verify function is Defined', () => { expect(nev.verify(12345)).toBeDefined() }) test('Verify must return false if not in production', () => { expect(nev.verify(56748)).toBeFalsy() })