@@ -28,21 +28,24 @@ describe("Path handling", function () {
2828
2929 describe ( "#_join" , function ( ) {
3030 it ( "returns one item" , function ( ) {
31- assert . strictEqual ( _join ( [ "foo" ] ) , "foo" ) ;
31+ const result = _join ( [ "foo" ] ) ;
32+ assert . strictEqual ( result , "foo" ) ;
3233 } ) ;
3334
3435 it ( 'returns two items joined with "and"' , function ( ) {
35- assert . strictEqual ( _join ( [ "foo" , "bar" ] ) , "foo and bar" ) ;
36+ const result = _join ( [ "foo" , "bar" ] ) ;
37+ assert . strictEqual ( result , "foo and bar" ) ;
3638 } ) ;
3739
3840 it ( 'returns three items joined with commands and an an "and"' , function ( ) {
39- assert . strictEqual ( _join ( [ "foo" , "bar" , "bazz" ] ) , "foo, bar and bazz" ) ;
41+ const result = _join ( [ "foo" , "bar" , "bazz" ] ) ;
42+ assert . strictEqual ( result , "foo, bar and bazz" ) ;
4043 } ) ;
4144
4245 it ( "returns empty string for now items" , function ( ) {
43- assert . strictEqual ( _join ( [ ] ) , "" ) ;
46+ const result = _join ( [ ] ) ;
47+ assert . strictEqual ( result , "" ) ;
4448 } ) ;
45-
4649 } ) ;
4750
4851 describe ( "#friendlyFile" , function ( ) {
0 commit comments