mirror of
https://github.com/eleith/emailjs.git
synced 2024-07-07 12:40:37 +00:00
test/server: verify callback invocation count with assertion plan
This commit is contained in:
parent
58dca3fd4c
commit
f1702dc66f
@ -5,6 +5,7 @@ import { client as c, message as m, smtp as s } from '../email';
|
|||||||
test.cb(
|
test.cb(
|
||||||
'connecting to wrong email server should not invoke callback multiple times',
|
'connecting to wrong email server should not invoke callback multiple times',
|
||||||
(t) => {
|
(t) => {
|
||||||
|
t.plan(1);
|
||||||
const client = new c.Client({ host: 'bar.baz' });
|
const client = new c.Client({ host: 'bar.baz' });
|
||||||
const msg = {
|
const msg = {
|
||||||
from: 'foo@bar.baz',
|
from: 'foo@bar.baz',
|
||||||
|
Loading…
Reference in New Issue
Block a user