]> khamidou — GitHub mirrors - electron.git/commitdiff
No more need of pathwatcher spec
authorCheng Zhao <zcbenz@gmail.com>
Sat, 31 Jan 2015 00:50:42 +0000 (16:50 -0800)
committerCheng Zhao <zcbenz@gmail.com>
Sat, 31 Jan 2015 00:50:42 +0000 (16:50 -0800)
It was used for testing modules not working while compiling, since the
module version increases for ABI breakage, it is not useful anymore.

spec/modules-spec.coffee
spec/package.json

index 881b24bf55344a5560adf2619113813fd7ecadc8..545d55e7d324aa84d6f9e2d96f717fc2fc78fbe8 100644 (file)
@@ -18,19 +18,6 @@ describe 'third-party module', ->
         assert.equal msg, 'ok'
         done()
 
-  describe 'pathwatcher', ->
-    it 'emits file events correctly', (done) ->
-      pathwatcher = require 'pathwatcher'
-      temp.mkdir 'dir', (err, dir) ->
-        return done() if err
-        file = path.join dir, 'file'
-        fs.writeFileSync file, 'content'
-        watcher = pathwatcher.watch file, (event) ->
-          assert.equal event, 'change'
-          watcher.close()
-          done()
-        fs.writeFileSync file, 'content2'
-
   describe 'q', ->
     Q = require 'q'
 
index 8634d43c0c33866950c058c1e29ddaab7f90344b..46afb4fda3bf7492e5080c83a725dafc3065b553 100644 (file)
@@ -6,7 +6,6 @@
 
   "devDependencies": {
     "formidable": "1.0.16",
-    "pathwatcher": "3.x",
     "q": "0.9.7",
     "mocha": "2.1.0",
     "runas": "2.x",