repository-provider-test-support 2.2.32 → 2.2.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repository-provider-test-support",
3
- "version": "2.2.32",
3
+ "version": "2.2.34",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -34,15 +34,15 @@
34
34
  "ava": "^5.1.0",
35
35
  "c8": "^7.12.0",
36
36
  "documentation": "^14.0.1",
37
- "repository-provider": "^32.5.0",
38
- "semantic-release": "^19.0.5"
37
+ "repository-provider": "^32.6.1",
38
+ "semantic-release": "^20.0.2"
39
39
  },
40
40
  "engines": {
41
41
  "node": ">=16.19.0"
42
42
  },
43
43
  "repository": {
44
44
  "type": "git",
45
- "url": "https://github.com/arlac77/repository-provider-test-support.git"
45
+ "url": "https://github.com/arlac77/repository-provider-test-support"
46
46
  },
47
47
  "bugs": {
48
48
  "url": "https://github.com/arlac77/repository-provider-test-support/issues"
@@ -62,7 +62,7 @@ export async function pullRequestList(t, provider, repoName) {
62
62
 
63
63
  const repository = await provider.repository(repoName);
64
64
  t.truthy(repository, `repsitory present ${repoName}`);
65
-
65
+
66
66
  const destination = await repository.defaultBranch;
67
67
 
68
68
  const sources = await Promise.all(
@@ -72,11 +72,14 @@ export async function pullRequestList(t, provider, repoName) {
72
72
  new StringContentEntry("README.md", `file content #${bn}`)
73
73
  ]);
74
74
 
75
- const pr = await repository.pullRequestClass.open(branch, destination, {
76
- title: `test pr from ${bn}`,
77
- body: "this is the body\n- a\n- b\n- c"
78
- });
79
-
75
+ try {
76
+ const pr = await repository.pullRequestClass.open(branch, destination, {
77
+ title: `test pr from ${bn}`,
78
+ body: "this is the body\n- a\n- b\n- c"
79
+ });
80
+ } catch (e) {
81
+ console.log(e);
82
+ }
80
83
  return branch;
81
84
  })
82
85
  );
@@ -94,7 +97,7 @@ export async function pullRequestList(t, provider, repoName) {
94
97
  numberOfSources++;
95
98
  }
96
99
 
97
- t.is(numberOfSources, 1);
100
+ t.is(numberOfSources, 1, "number of sources");
98
101
 
99
102
  const prs = [];
100
103