UNPKG

mandrill-nodemailer-transport

Version:

Mandrill API and Nodemailer v4+. The plugin is very small, optimized and written in TypeScript

19 lines (16 loc) 341 B
import {Requestly} from './Requestly'; test ('send post JSON request', () => { expect.assertions(1); return Requestly.postJSON({ protocol: 'https:', hostname: 'httpbin.org', path: '/post' }, { user_id: 'test' }) .then((resolve) => { expect(resolve).toBeDefined(); }, (error) => { throw error; }); });