Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add response parser to package.json

  • Loading branch information...
commit d77c9d9a94e68871536b5a832ba7d4abbaca62c8 1 parent 6cab1a9
@sergi authored
Showing with 5 additions and 13 deletions.
  1. +1 −7 Makefile
  2. +4 −2 package.json
  3. +0 −4 test/jsftp_test.js
View
8 Makefile
@@ -7,17 +7,11 @@ JSHINT=node_modules/.bin/jshint
# test files must end with ".test.js"
TESTS=$(shell find test/ -name "*.test.js")
-clean:
- rm -rf reports
-
-test:
- $(MOCHA) -R spec $(TESTS)
-
_MOCHA="node_modules/.bin/_mocha"
coverage:
@# check if reports folder exists, if not create it
@test -d reports || mkdir reports
- $(ISTANBUL) cover --report lcovonly --dir ./reports $(_MOCHA) -- -R spec $(TESTS)
+ $(ISTANBUL) cover --report lcovonly --dir ./reports $(_MOCHA) -- -R spec --colors $(TESTS)
genhtml reports/lcov.info --output-directory reports/
jshint:
View
6 package.json
@@ -1,7 +1,7 @@
{
"name": "jsftp",
"id": "jsftp",
- "version": "1.2.0",
+ "version": "1.2.1",
"description": "A sane FTP client implementation for NodeJS",
"keywords": [ "ftp", "protocol", "files", "server", "client", "async" ],
"author": "Sergi Mansilla <sergi.mansilla@gmail.com> (http://sergimansilla.com)",
@@ -15,6 +15,7 @@
},
"dependencies": {
"event-stream": "~3.0.14",
+ "ftp-response-parser": "~1.0.0",
"parse-listing": "~1.1.0",
"once": "~1.3.0"
},
@@ -31,7 +32,8 @@
"node": ">=0.6.21"
},
"scripts": {
- "test": "mocha -R spec -t 5000"
+ "test": "mocha -R spec -t 5000",
+ "clean": "rm -rf reports"
},
"licenses": [
{
View
4 test/jsftp_test.js
@@ -76,7 +76,6 @@ function getLocalPath(path) {
}
var CWD = process.cwd() + "/test";
var remoteCWD = "test/test_c9";
-var daemon;
exec('mkdir', [__dirname + "/" + remoteCWD]);
describe("jsftp test suite", function() {
@@ -99,9 +98,6 @@ describe("jsftp test suite", function() {
});
afterEach(function(next) {
- if (daemon)
- daemon.kill();
-
setTimeout(function() {
server.stop();
if (ftp) {
Please sign in to comment.
Something went wrong with that request. Please try again.