basic-ftp
Advanced tools
Comparing version 2.14.1 to 2.14.2
# Changelog | ||
## 2.14.2 | ||
- Fix unit test for adjusted behavior when closing context. | ||
## 2.14.1 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "basic-ftp", | ||
"version": "2.14.1", | ||
"version": "2.14.2", | ||
"description": "FTP client for Node.js with support for explicit FTPS over TLS.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/ftp", |
@@ -132,6 +132,7 @@ const assert = require("assert"); | ||
it("destroys sockets when closing", function() { | ||
it("creates a new control socket when closing", function() { | ||
const oldSocket = ftp.socket; | ||
ftp.close(); | ||
assert(ftp.socket.destroyed, "Control socket"); | ||
assert(ftp.dataSocket.destroyed, "Data socket"); | ||
assert.notEqual(ftp.socket, oldSocket, "Control socket"); | ||
assert.equal(ftp.dataSocket, undefined, "Data socket"); | ||
}); | ||
@@ -138,0 +139,0 @@ |
110059
2374