Browse Source

Add spec for #492.

Cheng Zhao 10 years ago
parent
commit
e62986b97d
1 changed files with 8 additions and 0 deletions
  1. 8 0
      spec/node-spec.coffee

+ 8 - 0
spec/node-spec.coffee

@@ -32,6 +32,14 @@ describe 'node feature', ->
           done()
         child.send 'message'
 
+      it 'works in browser process', (done) ->
+        fork = require('remote').require('child_process').fork
+        child = fork path.join(fixtures, 'module', 'ping.js')
+        child.on 'message', (msg) ->
+          assert.equal msg, 'message'
+          done()
+        child.send 'message'
+
   describe 'contexts', ->
     describe 'setTimeout in fs callback', ->
       it 'does not crash', (done) ->