Skip to content

Commit

Permalink
v1.4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
andris9 committed May 24, 2023
1 parent 2e5d8d8 commit 1a49e4d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mx-connect",
"version": "1.4.3",
"version": "1.4.4",
"description": "Establish TCP connection to a MX server",
"main": "lib/mx-connect.js",
"scripts": {
Expand All @@ -23,14 +23,14 @@
"homepage": "https://github.com/zone-eu/mx-connect#readme",
"devDependencies": {
"eslint-config-nodemailer": "1.2.0",
"eslint-config-prettier": "8.7.0",
"eslint-config-prettier": "8.8.0",
"grunt": "1.6.1",
"grunt-cli": "1.4.3",
"grunt-contrib-nodeunit": "4.0.0",
"grunt-eslint": "24.0.1"
"grunt-contrib-nodeunit": "5.0.0",
"grunt-eslint": "24.1.0"
},
"dependencies": {
"ipaddr.js": "2.0.1",
"mailauth": "4.3.1"
"mailauth": "4.3.4"
}
}
17 changes: 7 additions & 10 deletions test/mx-connect-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

'use strict';

const dns = require('dns');
const mxConnect = require('../lib/mx-connect');

module.exports.basic = test => {
Expand Down Expand Up @@ -61,14 +60,10 @@ module.exports.policyFail = test => {
]
},
(err, connection) => {
test.ifError(err);
test.ok(connection.socket);

test.equal(connection.policyMatch.valid, false);
test.equal(connection.policyMatch.testing, true);

connection.socket.once('end', () => test.done());
connection.socket.once('data', () => connection.socket.end());
test.ok(err);
test.ok(!connection);
test.equal(err.category, 'policy');
test.done();
}
);
};
Expand All @@ -95,7 +90,9 @@ module.exports.policySkip = test => {

test.ok(!connection.policyMatch);

connection.socket.once('end', () => test.done());
connection.socket.once('end', () => {
test.done();
});
connection.socket.once('data', () => connection.socket.end());
}
);
Expand Down

0 comments on commit 1a49e4d

Please sign in to comment.