| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 5e820ae commit 2c75886
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,10 +1,10 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | - var assert = require('assert'); | ||
| 3 | - var common = require('../common'); | ||
| 2 | + const common = require('../common'); | ||
| 3 | + const assert = require('assert'); | ||
| 4 | 4 | ||
| 5 | - var spawn = require('child_process').spawn; | ||
| 5 | + const spawn = require('child_process').spawn; | ||
| 6 | 6 | ||
| 7 | - var child = spawn(process.execPath, [ '-i' ], { | ||
| 7 | + const child = spawn(process.execPath, [ '-i' ], { | ||
| 8 | 8 | stdio: [null, null, 2] | |
| 9 | 9 | }); | |
| 10 | 10 | ||
@@ -52,8 +52,8 @@ child.stdout.once('data', function() { | |||
| 52 | 52 | }); | |
| 53 | 53 | ||
| 54 | 54 | child.on('close', function(c) { | |
| 55 | - assert(!c); | ||
| 55 | + assert.strictEqual(c, 0); | ||
| 56 | 56 | // make sure we got 3 throws, in the end. | |
| 57 | 57 | var lastLine = stdout.trim().split(/\r?\n/).pop(); | |
| 58 | - assert.equal(lastLine, '> 3'); | ||
| 58 | + assert.strictEqual(lastLine, '> 3'); | ||
| 59 | 59 | }); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments