Skip to content

Commit 1fa7981

Browse files
committed
Fix JSHint complaints
1 parent 9dcc63f commit 1fa7981

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tools/local-env/scripts/install.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* jshint node:true */
2+
13
const dotenv = require( 'dotenv' );
24
const dotenvExpand = require( 'dotenv-expand' );
35
const wait_on = require( 'wait-on' );
@@ -28,8 +30,8 @@ const testConfig = readFileSync( 'wp-tests-config-sample.php', 'utf8' )
2830
.replace( 'yourusernamehere', 'root' )
2931
.replace( 'yourpasswordhere', 'password' )
3032
.replace( 'localhost', 'mysql' )
31-
.replace( "'WP_TESTS_DOMAIN', 'example.org'", `'WP_TESTS_DOMAIN', '${process.env.LOCAL_WP_TESTS_DOMAIN}'` )
32-
.concat( "\ndefine( 'FS_METHOD', 'direct' );\n" );
33+
.replace( `'WP_TESTS_DOMAIN', 'example.org'`, `'WP_TESTS_DOMAIN', '${process.env.LOCAL_WP_TESTS_DOMAIN}'` )
34+
.concat( `\ndefine( 'FS_METHOD', 'direct' );\n` );
3335

3436
writeFileSync( 'wp-tests-config.php', testConfig );
3537

0 commit comments

Comments
 (0)