Format script/test with standard

This commit is contained in:
Ash Wilson
2017-08-02 08:18:25 -04:00
parent 9ab9643b11
commit 7244fb9670

View File

@@ -105,7 +105,6 @@ for (let packageName in CONFIG.appMetadata.packageDependencies) {
const pkgJsonPath = path.join(repositoryPackagePath, 'package.json')
const nodeModulesPath = path.join(repositoryPackagePath, 'node_modules')
const nodeModulesBackupPath = path.join(repositoryPackagePath, 'node_modules.bak')
let finalize = () => null
if (require(pkgJsonPath).atomTestRunner) {
console.log(`Installing test runner dependencies for ${packageName}`.bold.green)
@@ -152,12 +151,17 @@ function runBenchmarkTests (callback) {
let testSuitesToRun = testSuitesForPlatform(process.platform)
function testSuitesForPlatform(platform) {
switch(platform) {
case 'darwin': return [runCoreMainProcessTests, runCoreRenderProcessTests, runBenchmarkTests].concat(packageTestSuites)
case 'win32': return (process.arch === 'x64') ? [runCoreMainProcessTests, runCoreRenderProcessTests] : [runCoreMainProcessTests]
case 'linux': return [runCoreMainProcessTests]
default: return []
function testSuitesForPlatform (platform) {
switch (platform) {
case 'darwin':
return [runCoreMainProcessTests, runCoreRenderProcessTests, runBenchmarkTests].concat(packageTestSuites)
case 'win32':
return (process.arch === 'x64') ? [runCoreMainProcessTests, runCoreRenderProcessTests] : [runCoreMainProcessTests]
case 'linux':
return [runCoreMainProcessTests]
default:
console.log(`Unrecognized platform: ${platform}`)
return []
}
}