mirror of
https://github.com/unraid/api.git
synced 2026-01-07 00:59:48 -06:00
chore: lint all the files
This commit is contained in:
@@ -36,7 +36,7 @@ test.serial('Loads production when no env is set', async t => {
|
||||
writeFileSync(PATHS_MYSERVERS_ENV, '');
|
||||
|
||||
// Run 'switch-env'
|
||||
const { stdout: output } = await exec(`PATHS_MYSERVERS_ENV=${PATHS_MYSERVERS_ENV} PATHS_UNRAID_API_BASE=${PATHS_UNRAID_API_BASE} ${process.execPath} ./dist/cli.cjs switch-env`);
|
||||
const { stdout: output } = await exec(`PATHS_MYSERVERS_ENV=${PATHS_MYSERVERS_ENV} PATHS_UNRAID_API_BASE=${PATHS_UNRAID_API_BASE} ${process.execPath} ./dist/cli.js switch-env`);
|
||||
|
||||
// Split the lines
|
||||
const lines = output.split('\n');
|
||||
@@ -62,7 +62,7 @@ test.serial('Loads production when switching from staging', async t => {
|
||||
writeFileSync(PATHS_MYSERVERS_ENV, 'env="staging"');
|
||||
|
||||
// Run 'switch-env'
|
||||
const { stdout: output } = await exec(`PATHS_MYSERVERS_ENV=${PATHS_MYSERVERS_ENV} PATHS_UNRAID_API_BASE=${PATHS_UNRAID_API_BASE} ${process.execPath} ./dist/cli.cjs switch-env`);
|
||||
const { stdout: output } = await exec(`PATHS_MYSERVERS_ENV=${PATHS_MYSERVERS_ENV} PATHS_UNRAID_API_BASE=${PATHS_UNRAID_API_BASE} ${process.execPath} ./dist/cli.js switch-env`);
|
||||
|
||||
// Split the lines
|
||||
const lines = output.split('\n');
|
||||
@@ -87,7 +87,7 @@ test.serial('Loads staging when switching from production', async t => {
|
||||
writeFileSync(PATHS_MYSERVERS_ENV, 'env="production"');
|
||||
|
||||
// Run 'switch-env'
|
||||
const { stdout: output } = await exec(`PATHS_MYSERVERS_ENV=${PATHS_MYSERVERS_ENV} PATHS_UNRAID_API_BASE=${PATHS_UNRAID_API_BASE} ${process.execPath} ./dist/cli.cjs switch-env`);
|
||||
const { stdout: output } = await exec(`PATHS_MYSERVERS_ENV=${PATHS_MYSERVERS_ENV} PATHS_UNRAID_API_BASE=${PATHS_UNRAID_API_BASE} ${process.execPath} ./dist/cli.js switch-env`);
|
||||
|
||||
// Split the lines
|
||||
const lines = output.split('\n');
|
||||
|
||||
Reference in New Issue
Block a user