forwardemail / test-preview-emails-cross-browsers-ios-simulator-nodejs-javascript

Automatically opens your browser and iOS Simulator to preview Node.js email messages sent with Nodemailer. Made for @forwardemail and @ladjs. Cross-browser and cross-platform email testing.

Home Page:https://forwardemail.net/docs/test-preview-email-rendering-browsers-ios-simulator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Option `open` is incorrectly handled and/or documented

euvs opened this issue · comments

According to the readme, theopen option is supposed to be a Boolean or an object of the { wait: false } format. However in the code it only checks for boolean.

https://github.com/forwardemail/preview-email/blob/4e48c73756b13599bbff92e30fe20a9bf1dd54e5/src/index.js#L55

If { wait: false } is passed it will always be true

PR welcome!