1
0
mirror of https://github.com/eleith/emailjs.git synced 2024-07-02 11:08:51 +00:00

test/server: verify callback invocation count with assertion plan

This commit is contained in:
Zack Schuster 2020-05-26 09:06:33 -07:00
parent 58dca3fd4c
commit f1702dc66f

View File

@ -5,6 +5,7 @@ import { client as c, message as m, smtp as s } from '../email';
test.cb(
'connecting to wrong email server should not invoke callback multiple times',
(t) => {
t.plan(1);
const client = new c.Client({ host: 'bar.baz' });
const msg = {
from: 'foo@bar.baz',