Skip to content

Commit

Permalink
test: use ethereal mail
Browse files Browse the repository at this point in the history
  • Loading branch information
arlac77 committed Nov 30, 2020
1 parent 421b26c commit 842e0dc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/service-test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,26 @@ import { ServiceSMTP } from "@kronos-integration/service-smtp";

const config = {
type: ServiceSMTP,

host: 'smtp.ethereal.email',
port: 587,
auth: {
username: 'quinten.crist23@ethereal.email',
password: 'DTh5dnCsY1Y35QfCFU'
}

/*
host: "localhost",
port: 587,
auth: {
username: "alice@example.com",
password: "secret"
}
*/
};



test("service-smtp send", async t => {
const sp = new StandaloneServiceProvider();
const smtp = await sp.declareService(config);
Expand Down

0 comments on commit 842e0dc

Please sign in to comment.