Skip to content

Commit

Permalink
test: fix calls to fetch in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdlg committed Dec 4, 2019
1 parent cbef9d1 commit ec54c0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/git.test.js
Expand Up @@ -374,7 +374,7 @@ test('Unshallow and fetch repository with notes', async t => {
// Verify the shallow clone doesn't contains the note
await t.throwsAsync(gitGetNote(commits[0].hash, {cwd}));

await fetch(repositoryUrl, 'master', {cwd});
await fetch(repositoryUrl, 'master', 'master', {cwd});
await fetchNotes(repositoryUrl, {cwd});

// Verify the shallow clone contains the note
Expand All @@ -390,7 +390,7 @@ test('Fetch all notes on a detached head repository', async t => {
await gitAddNote(JSON.stringify({note: 'note'}), commit.hash, {cwd});
cwd = await gitDetachedHead(repositoryUrl, commit.hash);

await fetch(repositoryUrl, 'master', {cwd});
await fetch(repositoryUrl, 'master', 'master', {cwd});
await fetchNotes(repositoryUrl, {cwd});

t.is(await gitGetNote(commit.hash, {cwd}), '{"note":"note"}');
Expand Down

0 comments on commit ec54c0b

Please sign in to comment.