Skip to content

Commit 7e1421f

Browse files
committed
add unit test cases
1 parent 6d8c43d commit 7e1421f

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

bin/helpers/syncRunner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ let logBuildDetails = (bsConfig, bsConfigPath, buildDetails) => {
3333
parallels_enabled = true;
3434
}
3535
let parallelMessage = `Run in parallel: ${parallels_enabled ? 'enabled' : 'disabled'}`;
36-
if (parallels_enabled) parallelMessage = parallelMessage + `(attempting to run on ${buildDetails.machines} machines)`;
36+
if (parallels_enabled) parallelMessage = parallelMessage + ` (attempting to run on ${buildDetails.machines} machines)`;
3737

3838
// logger.info(`Configuration file: ${bsConfigPath}`);
3939
// logger.info(`Cypress config file: ${bsConfig.run_settings.cypress_config_file}`);

test/unit/support/fixtures/testObjects.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,19 @@ const sampleBsConfig = {
1010
}
1111
};
1212

13+
const sampleBsConfigWithParallels = {
14+
auth: {
15+
username: "random-username",
16+
access_key: "random-access-key",
17+
},
18+
run_settings: {
19+
cypress_proj_dir: "random path",
20+
cypressConfigFilePath: "random path",
21+
cypressProjectDir: "random path",
22+
parallels: 10,
23+
},
24+
};
25+
1326
const initSampleArgs = {
1427
_: ["init"],
1528
p: false,
@@ -114,6 +127,7 @@ const runSampleArgs = {
114127

115128
module.exports = Object.freeze({
116129
sampleBsConfig,
130+
sampleBsConfigWithParallels,
117131
initSampleArgs,
118132
buildInfoSampleArgs,
119133
buildInfoSampleBody,

0 commit comments

Comments
 (0)