Skip to content
This repository was archived by the owner on Jan 20, 2023. It is now read-only.

Commit e55a05a

Browse files
committed
style: lint
1 parent cdef931 commit e55a05a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/helpers/gitbox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ async function createRepo(name, branch = 'master', description = `Repository ${n
6767
const authUrl = `http://${gitCredential}@${SERVER_HOST}:${HOST_PORT}/git/${name}.git`;
6868

6969
// Retry as the server might take a few ms to make the repo available push
70-
await pRetry(() => initBareRepo(authUrl), {retries: 3, minTimeout: 500, factor: 2});
70+
await pRetry(() => initBareRepo(authUrl, branch), {retries: 3, minTimeout: 500, factor: 2});
7171
await gitShallowClone(authUrl);
7272
return {repositoryUrl, authUrl};
7373
}

test/integration.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ test.serial('Initial and minor releases', async t => {
105105
t.regex(t.context.logs, new RegExp(`Published release: 1.0.0`));
106106
t.is((await readJson('./package.json')).version, version);
107107
t.deepEqual(await gitCommitedFiles(), ['CHANGELOG.md', 'package.json']);
108-
let commit = (await gitGetCommit())[0];
108+
let [commit] = await gitGetCommit();
109109
t.is(commit.subject, `chore(release): ${version} [skip ci]`);
110110
t.is(commit.gitTags, `(HEAD -> master, tag: v${version})`);
111111

@@ -142,7 +142,7 @@ test.serial('Initial and minor releases', async t => {
142142
t.regex(t.context.logs, new RegExp(`Published release: 1.0.0`));
143143
t.is((await readJson('./package.json')).version, version);
144144
t.deepEqual(await gitCommitedFiles(), ['CHANGELOG.md', 'package.json']);
145-
commit = (await gitGetCommit())[0];
145+
[commit] = await gitGetCommit();
146146
t.is(commit.subject, `chore(release): ${version} [skip ci]`);
147147
t.is(commit.gitTags, `(HEAD -> master, tag: v${version})`);
148148
});

0 commit comments

Comments
 (0)