Skip to content

Commit 4df0817

Browse files
committed
Fix tests again
1 parent ad5727c commit 4df0817

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/commands/ti-sdk.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ describe('ti sdk', () => {
270270
let output = stripColor(stdout);
271271
assert.match(output, /Titanium Command-Line Interface/);
272272
assert.match(output, new RegExp(`SDK Install Locations:\n\\s*${tmpSDKDir.replace(/\\/g, '\\\\')}`));
273-
assert.match(output, /Branches:\n\s*main/);
273+
assert.match(output, /Branches:\n\s*(main|master)/);
274274

275275
// list stable releases
276276
({ exitCode, stdout } = await run(['sdk', 'list', '-r']));
@@ -294,13 +294,13 @@ describe('ti sdk', () => {
294294
output = stripColor(stdout);
295295
assert.match(output, /Titanium Command-Line Interface/);
296296
assert.match(output, new RegExp(`SDK Install Locations:\n\\s*${tmpSDKDir.replace(/\\/g, '\\\\')}`));
297-
assert.match(output, /'main' Branch Builds:/);
297+
assert.match(output, /'(main|master)' Branch Builds:/);
298298
assert.match(output, /\d+\.\d+\.\d+\.v\d+\s+\d+\/\d+\/\d+\s+\d+(\.\d+)? .B \[unstable\]/);
299299

300300
// list branches, stable, and unstable releases as json
301301
({ exitCode, stdout } = await run(['sdk', 'ls', '-bu', '--json']));
302302
const json = JSON.parse(stdout);
303-
assert(json.branches.branches.includes('main'));
303+
assert(json.branches.branches.includes('main') || json.branches.branches.includes('master'));
304304
assert(json.branches.branches.includes('12_6_X'));
305305
assert(json.releases[sdkName]);
306306

0 commit comments

Comments
 (0)