File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
- var common = require ( '../common' ) ;
3
- var assert = require ( 'assert' ) ;
2
+ const common = require ( '../common' ) ;
3
+ const assert = require ( 'assert' ) ;
4
4
5
5
function pwd ( callback ) {
6
- var output = '' ;
7
- var child = common . spawnPwd ( ) ;
6
+ let output = '' ;
7
+ const child = common . spawnPwd ( ) ;
8
8
9
9
child . stdout . setEncoding ( 'utf8' ) ;
10
10
child . stdout . on ( 'data' , function ( s ) {
@@ -14,7 +14,7 @@ function pwd(callback) {
14
14
15
15
child . on ( 'exit' , common . mustCall ( function ( c ) {
16
16
console . log ( 'exit: ' + c ) ;
17
- assert . equal ( 0 , c ) ;
17
+ assert . strictEqual ( 0 , c ) ;
18
18
} ) ) ;
19
19
20
20
child . on ( 'close' , common . mustCall ( function ( ) {
@@ -25,6 +25,6 @@ function pwd(callback) {
25
25
26
26
pwd ( function ( result ) {
27
27
console . dir ( result ) ;
28
- assert . equal ( true , result . length > 1 ) ;
29
- assert . equal ( '\n' , result [ result . length - 1 ] ) ;
28
+ assert . strictEqual ( true , result . length > 1 ) ;
29
+ assert . strictEqual ( '\n' , result [ result . length - 1 ] ) ;
30
30
} ) ;
You can’t perform that action at this time.
0 commit comments