diff --git a/tests/support/cobs/issue.ts b/tests/support/cobs/issue.ts index 956166586..eb52e65a9 100644 --- a/tests/support/cobs/issue.ts +++ b/tests/support/cobs/issue.ts @@ -15,7 +15,7 @@ export async function create( title, "--description", description, - ...labels.map(label => ["--label", label]).flat(), + ...(labels.length > 0 ? ["--labels", labels.join(",")] : []), ]; const { stdout } = await peer.rad(issueOptions, options); const match = stdout.match(/Issue {3}([a-zA-Z0-9]*)/); diff --git a/tests/support/fixtures.ts b/tests/support/fixtures.ts index 0308fdf6d..0edd87cba 100644 --- a/tests/support/fixtures.ts +++ b/tests/support/fixtures.ts @@ -387,7 +387,7 @@ export async function createCobsFixture( createOptions(repoFolder, 1), ); await eve.rad( - ["patch", "review", patchThree, "-m", "This looks better"], + ["patch", "review", patchThree, "-m", "This looks better", "--accept"], createOptions(repoFolder, 2), ); await Fs.appendFile( @@ -435,6 +435,7 @@ export async function createCobsFixture( patchFour, "-m", "No review due to patch being archived.", + "--accept", ], createOptions(repoFolder, 1), ); diff --git a/tests/support/heartwood-release b/tests/support/heartwood-release index 1cc5f657e..943f9cbc4 100644 --- a/tests/support/heartwood-release +++ b/tests/support/heartwood-release @@ -1 +1 @@ -1.1.0 \ No newline at end of file +1.7.1 diff --git a/tests/support/support.ts b/tests/support/support.ts index 53773d13e..80d45c76a 100644 --- a/tests/support/support.ts +++ b/tests/support/support.ts @@ -26,10 +26,9 @@ export const tmpDir = Path.resolve(supportDir, "..", "./tmp"); export const fixturesDir = Path.resolve(supportDir, "..", "./fixtures"); const workspacePaths = [Path.join(tmpDir, "peers"), Path.join(tmpDir, "repos")]; -export const heartwoodRelease = await Fs.readFile( - `${supportDir}/heartwood-release`, - "utf8", -); +export const heartwoodRelease = ( + await Fs.readFile(`${supportDir}/heartwood-release`, "utf8") +).trim(); // Assert that binaries are installed and are the correct version. export async function assertBinariesInstalled(