From b46a074011bfb649ca73d752c79ef3cbc9d4c4ac Mon Sep 17 00:00:00 2001 From: Dan Lin Date: Mon, 24 Sep 2018 16:46:47 -0400 Subject: [PATCH 1/7] first commit --- tests/spec/fs.write.spec.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/spec/fs.write.spec.js b/tests/spec/fs.write.spec.js index 29e6aeec..164e4d5c 100644 --- a/tests/spec/fs.write.spec.js +++ b/tests/spec/fs.write.spec.js @@ -5,6 +5,17 @@ var expect = require('chai').expect; describe('fs.write', function() { beforeEach(util.setup); afterEach(util.cleanup); + + // the file is underfined, will create problem + it('should be a error',function(done){ + var fs=util.fs(); + fs.writeFile(undefined, 'data', function(err) { + expect(err).to.exist; + expect(err.code).to.equal('EINVAL'); + done(); + }); + }); + it('should be a function', function() { var fs = util.fs(); From 82cab4f452a790b9ba639e679f08ff6c9f038168 Mon Sep 17 00:00:00 2001 From: Dan Lin Date: Mon, 24 Sep 2018 16:48:06 -0400 Subject: [PATCH 2/7] first commit --- tests/spec/fs.write.spec.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/spec/fs.write.spec.js b/tests/spec/fs.write.spec.js index 164e4d5c..2674fece 100644 --- a/tests/spec/fs.write.spec.js +++ b/tests/spec/fs.write.spec.js @@ -7,6 +7,7 @@ describe('fs.write', function() { afterEach(util.cleanup); // the file is underfined, will create problem + // it('should be a error',function(done){ var fs=util.fs(); fs.writeFile(undefined, 'data', function(err) { From b53c59e043894c4334b4bdd52fb38b6808eb85d4 Mon Sep 17 00:00:00 2001 From: Dan Lin Date: Wed, 26 Sep 2018 13:02:15 -0400 Subject: [PATCH 3/7] first commit --- npm-debug.log | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 npm-debug.log diff --git a/npm-debug.log b/npm-debug.log new file mode 100644 index 00000000..d7552bb1 --- /dev/null +++ b/npm-debug.log @@ -0,0 +1,48 @@ +0 info it worked if it ends with ok +1 verbose cli [ 'F:\\dinah\\third\\web\\node\\install\\node.exe', +1 verbose cli 'F:\\dinah\\third\\web\\node\\install\\node_modules\\npm\\bin\\npm-cli.js', +1 verbose cli 'run', +1 verbose cli 'lint' ] +2 info using npm@3.10.10 +3 info using node@v6.11.3 +4 verbose run-script [ 'prelint', 'lint', 'postlint' ] +5 info lifecycle filer@0.0.44~prelint: filer@0.0.44 +6 silly lifecycle filer@0.0.44~prelint: no script for prelint, continuing +7 info lifecycle filer@0.0.44~lint: filer@0.0.44 +8 verbose lifecycle filer@0.0.44~lint: unsafe-perm in lifecycle true +9 verbose lifecycle filer@0.0.44~lint: PATH: F:\dinah\third\web\node\install\node_modules\npm\bin\node-gyp-bin;C:\Users\dell\repos\filer\node_modules\.bin;F:\dinah\third\web\node\install\node_modules\npm\bin\node-gyp-bin;C:\Users\dell\repos\filer\node_modules\.bin;C:\ProgramData\Oracle\Java\javapath;F:\L\MinGW\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;c:\Program Files (x86)\AMD APP\bin\x86_64;c:\Program Files (x86)\AMD APP\bin\x86;c:\Program Files (x86)\Intel\iCLS Client\;c:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;c:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Microsoft SQL Server\80\Tools\Binn\;D:\sql\90\DTS\Binn\;D:\sql\90\Tools\binn\;D:\sql (x86)\90\Tools\binn\;D:\sql (x86)\90\DTS\Binn\;D:\sql (x86)\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Windows\system32\config\systemprofile\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\TortoiseGit\bin;F:\安装包集合\dbs\install\Emulator;F:\安;包集合\dbs\install\Shared;F:;安装包集合\dbs\install\;;;C:;Program Files\Git\cmd;F:\dinah\third\web\node\install\;C:\Program Files\Git\cmd;;D:\visual studio code\Microsoft VS Code\bin;F:\L\ssh secure shell\install;F:\ssh安装包\install;F:\安装包集合\ssh安装包;F:\dinah\third\web\heroku\intall\Heroku\bin;F:\dinah\third\web\heroku1\install\Heroku\bin;C:\Users\dell\AppData\Roaming\npm;F:\dinah\third\web\vs\install\Microsoft VS Code\bin;F:\dinah\third\web\new heroku\install\Heroku\bin;C:\Program Files\Heroku\bin;F:\dinah\third\web\heroku\install\Heroku\bin;C:\Program Files\MongoDB\Server\3.6\bin\;C:\Program Files\Java\jdk1.8.0.161\bin +10 verbose lifecycle filer@0.0.44~lint: CWD: C:\Users\dell\repos\filer +11 silly lifecycle filer@0.0.44~lint: Args: [ '/d /s /c', 'eslint src tests' ] +12 silly lifecycle filer@0.0.44~lint: Returned: code: 1 signal: null +13 info lifecycle filer@0.0.44~lint: Failed to exec lint script +14 verbose stack Error: filer@0.0.44 lint: `eslint src tests` +14 verbose stack Exit status 1 +14 verbose stack at EventEmitter. (F:\dinah\third\web\node\install\node_modules\npm\lib\utils\lifecycle.js:255:16) +14 verbose stack at emitTwo (events.js:106:13) +14 verbose stack at EventEmitter.emit (events.js:191:7) +14 verbose stack at ChildProcess. (F:\dinah\third\web\node\install\node_modules\npm\lib\utils\spawn.js:40:14) +14 verbose stack at emitTwo (events.js:106:13) +14 verbose stack at ChildProcess.emit (events.js:191:7) +14 verbose stack at maybeClose (internal/child_process.js:920:16) +14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5) +15 verbose pkgid filer@0.0.44 +16 verbose cwd C:\Users\dell\repos\filer +17 error Windows_NT 6.1.7601 +18 error argv "F:\\dinah\\third\\web\\node\\install\\node.exe" "F:\\dinah\\third\\web\\node\\install\\node_modules\\npm\\bin\\npm-cli.js" "run" "lint" +19 error node v6.11.3 +20 error npm v3.10.10 +21 error code ELIFECYCLE +22 error filer@0.0.44 lint: `eslint src tests` +22 error Exit status 1 +23 error Failed at the filer@0.0.44 lint script 'eslint src tests'. +23 error Make sure you have the latest version of node.js and npm installed. +23 error If you do, this is most likely a problem with the filer package, +23 error not with npm itself. +23 error Tell the author that this fails on your system: +23 error eslint src tests +23 error You can get information on how to open an issue for this project with: +23 error npm bugs filer +23 error Or if that isn't available, you can get their info via: +23 error npm owner ls filer +23 error There is likely additional logging output above. +24 verbose exit [ 1, true ] From 2272c4aba46c3d0bb1ff911d85a4f21fe54ed40b Mon Sep 17 00:00:00 2001 From: Dan Lin Date: Wed, 26 Sep 2018 13:16:04 -0400 Subject: [PATCH 4/7] first commit --- tests/spec/fs.write.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/spec/fs.write.spec.js b/tests/spec/fs.write.spec.js index 2674fece..32cbf04b 100644 --- a/tests/spec/fs.write.spec.js +++ b/tests/spec/fs.write.spec.js @@ -10,9 +10,9 @@ describe('fs.write', function() { // it('should be a error',function(done){ var fs=util.fs(); - fs.writeFile(undefined, 'data', function(err) { - expect(err).to.exist; - expect(err.code).to.equal('EINVAL'); + fs.writeFile(undefined, 'data', function(error) { + expect(error).to.exist; + expect(error.code).to.equal('EINVAL'); done(); }); }); From d2a33881397567cd83d633abd1894edc65315d61 Mon Sep 17 00:00:00 2001 From: Dan Lin Date: Wed, 26 Sep 2018 17:27:17 -0400 Subject: [PATCH 5/7] first commit --- npm-debug.log | 48 ------------------------------------- tests/spec/fs.write.spec.js | 2 +- 2 files changed, 1 insertion(+), 49 deletions(-) delete mode 100644 npm-debug.log diff --git a/npm-debug.log b/npm-debug.log deleted file mode 100644 index d7552bb1..00000000 --- a/npm-debug.log +++ /dev/null @@ -1,48 +0,0 @@ -0 info it worked if it ends with ok -1 verbose cli [ 'F:\\dinah\\third\\web\\node\\install\\node.exe', -1 verbose cli 'F:\\dinah\\third\\web\\node\\install\\node_modules\\npm\\bin\\npm-cli.js', -1 verbose cli 'run', -1 verbose cli 'lint' ] -2 info using npm@3.10.10 -3 info using node@v6.11.3 -4 verbose run-script [ 'prelint', 'lint', 'postlint' ] -5 info lifecycle filer@0.0.44~prelint: filer@0.0.44 -6 silly lifecycle filer@0.0.44~prelint: no script for prelint, continuing -7 info lifecycle filer@0.0.44~lint: filer@0.0.44 -8 verbose lifecycle filer@0.0.44~lint: unsafe-perm in lifecycle true -9 verbose lifecycle filer@0.0.44~lint: PATH: F:\dinah\third\web\node\install\node_modules\npm\bin\node-gyp-bin;C:\Users\dell\repos\filer\node_modules\.bin;F:\dinah\third\web\node\install\node_modules\npm\bin\node-gyp-bin;C:\Users\dell\repos\filer\node_modules\.bin;C:\ProgramData\Oracle\Java\javapath;F:\L\MinGW\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;c:\Program Files (x86)\AMD APP\bin\x86_64;c:\Program Files (x86)\AMD APP\bin\x86;c:\Program Files (x86)\Intel\iCLS Client\;c:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;c:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Microsoft SQL Server\80\Tools\Binn\;D:\sql\90\DTS\Binn\;D:\sql\90\Tools\binn\;D:\sql (x86)\90\Tools\binn\;D:\sql (x86)\90\DTS\Binn\;D:\sql (x86)\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Windows\system32\config\systemprofile\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\TortoiseGit\bin;F:\安装包集合\dbs\install\Emulator;F:\安;包集合\dbs\install\Shared;F:;安装包集合\dbs\install\;;;C:;Program Files\Git\cmd;F:\dinah\third\web\node\install\;C:\Program Files\Git\cmd;;D:\visual studio code\Microsoft VS Code\bin;F:\L\ssh secure shell\install;F:\ssh安装包\install;F:\安装包集合\ssh安装包;F:\dinah\third\web\heroku\intall\Heroku\bin;F:\dinah\third\web\heroku1\install\Heroku\bin;C:\Users\dell\AppData\Roaming\npm;F:\dinah\third\web\vs\install\Microsoft VS Code\bin;F:\dinah\third\web\new heroku\install\Heroku\bin;C:\Program Files\Heroku\bin;F:\dinah\third\web\heroku\install\Heroku\bin;C:\Program Files\MongoDB\Server\3.6\bin\;C:\Program Files\Java\jdk1.8.0.161\bin -10 verbose lifecycle filer@0.0.44~lint: CWD: C:\Users\dell\repos\filer -11 silly lifecycle filer@0.0.44~lint: Args: [ '/d /s /c', 'eslint src tests' ] -12 silly lifecycle filer@0.0.44~lint: Returned: code: 1 signal: null -13 info lifecycle filer@0.0.44~lint: Failed to exec lint script -14 verbose stack Error: filer@0.0.44 lint: `eslint src tests` -14 verbose stack Exit status 1 -14 verbose stack at EventEmitter. (F:\dinah\third\web\node\install\node_modules\npm\lib\utils\lifecycle.js:255:16) -14 verbose stack at emitTwo (events.js:106:13) -14 verbose stack at EventEmitter.emit (events.js:191:7) -14 verbose stack at ChildProcess. (F:\dinah\third\web\node\install\node_modules\npm\lib\utils\spawn.js:40:14) -14 verbose stack at emitTwo (events.js:106:13) -14 verbose stack at ChildProcess.emit (events.js:191:7) -14 verbose stack at maybeClose (internal/child_process.js:920:16) -14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5) -15 verbose pkgid filer@0.0.44 -16 verbose cwd C:\Users\dell\repos\filer -17 error Windows_NT 6.1.7601 -18 error argv "F:\\dinah\\third\\web\\node\\install\\node.exe" "F:\\dinah\\third\\web\\node\\install\\node_modules\\npm\\bin\\npm-cli.js" "run" "lint" -19 error node v6.11.3 -20 error npm v3.10.10 -21 error code ELIFECYCLE -22 error filer@0.0.44 lint: `eslint src tests` -22 error Exit status 1 -23 error Failed at the filer@0.0.44 lint script 'eslint src tests'. -23 error Make sure you have the latest version of node.js and npm installed. -23 error If you do, this is most likely a problem with the filer package, -23 error not with npm itself. -23 error Tell the author that this fails on your system: -23 error eslint src tests -23 error You can get information on how to open an issue for this project with: -23 error npm bugs filer -23 error Or if that isn't available, you can get their info via: -23 error npm owner ls filer -23 error There is likely additional logging output above. -24 verbose exit [ 1, true ] diff --git a/tests/spec/fs.write.spec.js b/tests/spec/fs.write.spec.js index 32cbf04b..3b83dcf2 100644 --- a/tests/spec/fs.write.spec.js +++ b/tests/spec/fs.write.spec.js @@ -6,7 +6,7 @@ describe('fs.write', function() { beforeEach(util.setup); afterEach(util.cleanup); - // the file is underfined, will create problem + // the file is undefined, will create problem // it('should be a error',function(done){ var fs=util.fs(); From bd2524a00c5bdcbd36db05790472322530af3144 Mon Sep 17 00:00:00 2001 From: Dan Lin Date: Wed, 26 Sep 2018 17:28:02 -0400 Subject: [PATCH 6/7] first commit --- tests/spec/fs.write.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/spec/fs.write.spec.js b/tests/spec/fs.write.spec.js index 3b83dcf2..5426c019 100644 --- a/tests/spec/fs.write.spec.js +++ b/tests/spec/fs.write.spec.js @@ -6,7 +6,7 @@ describe('fs.write', function() { beforeEach(util.setup); afterEach(util.cleanup); - // the file is undefined, will create problem + // the file is undefined, it will create problem // it('should be a error',function(done){ var fs=util.fs(); From 407007e80838f69d6dfa32d81ecdeff28b204c04 Mon Sep 17 00:00:00 2001 From: Dan Lin Date: Wed, 26 Sep 2018 17:28:33 -0400 Subject: [PATCH 7/7] first commit --- tests/spec/fs.write.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/spec/fs.write.spec.js b/tests/spec/fs.write.spec.js index 5426c019..4369a442 100644 --- a/tests/spec/fs.write.spec.js +++ b/tests/spec/fs.write.spec.js @@ -6,7 +6,7 @@ describe('fs.write', function() { beforeEach(util.setup); afterEach(util.cleanup); - // the file is undefined, it will create problem + // if the file is undefined, it will create problems // it('should be a error',function(done){ var fs=util.fs();