| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent dbfec29 commit 4efdbaf
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,17 +1,18 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | - var common = require('../common'); | ||
| 3 | - var assert = require('assert'); | ||
| 4 | 2 | ||
| 5 | - var spawn = require('child_process').spawn; | ||
| 3 | + const common = require('../common'); | ||
| 4 | + const assert = require('assert'); | ||
| 6 | 5 | ||
| 7 | - var path = require('path'); | ||
| 6 | + const spawn = require('child_process').spawn; | ||
| 8 | 7 | ||
| 9 | - var sub = path.join(common.fixturesDir, 'echo.js'); | ||
| 8 | + const path = require('path'); | ||
| 10 | 9 | ||
| 11 | - var gotHelloWorld = false; | ||
| 12 | - var gotEcho = false; | ||
| 10 | + const sub = path.join(common.fixturesDir, 'echo.js'); | ||
| 13 | 11 | ||
| 14 | - var child = spawn(process.argv[0], [sub]); | ||
| 12 | + let gotHelloWorld = false; | ||
| 13 | + let gotEcho = false; | ||
| 14 | + | ||
| 15 | + const child = spawn(process.argv[0], [sub]); | ||
| 15 | 16 | ||
| 16 | 17 | child.stderr.on('data', function(data) { | |
| 17 | 18 | console.log('parent stderr: ' + data); | |
@@ -23,7 +24,7 @@ child.stdout.on('data', function(data) { | |||
| 23 | 24 | console.log('child said: ' + JSON.stringify(data)); | |
| 24 | 25 | if (!gotHelloWorld) { | |
| 25 | 26 | console.error('testing for hello world'); | |
| 26 | - assert.equal('hello world\r\n', data); | ||
| 27 | + assert.strictEqual('hello world\r\n', data); | ||
| 27 | 28 | gotHelloWorld = true; | |
| 28 | 29 | console.error('writing echo me'); | |
| 29 | 30 | child.stdin.write('echo me\r\n'); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments