Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nodemailer-mock

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodemailer-mock - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

2

nodemailer-mock.js

@@ -180,3 +180,3 @@ 'use strict';

Object.assign(mock, {
shouldFailOnce: mock.setShouldFaileOnce,
shouldFailOnce: mock.setShouldFailOnce,
shouldFail: mock.setShouldFail,

@@ -183,0 +183,0 @@ mockedVerify: mock.setMockedVerify,

{
"name": "nodemailer-mock",
"version": "1.4.0",
"version": "1.4.1",
"description": "Mock nodemailer module for testing",

@@ -5,0 +5,0 @@ "main": "nodemailer-mock.js",

@@ -178,3 +178,3 @@ # nodemailer-mock

it('should fail to send an email using nodemailer-mock', async (done) {
it('should fail to send an email using nodemailer-mock', async () {
// tell the mock class to return an error

@@ -192,3 +192,3 @@ const err = 'My custom error';

it('should verify using the real nodemailer transport', async (done) {
it('should verify using the real nodemailer transport', async () {
// tell the mock class to pass verify requests to nodemailer

@@ -195,0 +195,0 @@ nodemailerMock.mock.setMockedVerify(false);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc