We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 512f3d9 commit 8753bbeCopy full SHA for 8753bbe
index.test.js
@@ -27,19 +27,16 @@ describe("createCommitOnBranch", () => {
27
"the description of the commit"
28
);
29
console.log(JSON.stringify(result, null, 2));
30
- expect(result).toMatchObject({
31
- data: {
32
- createCommitOnBranch: {
33
- commit: {
34
- url: expect.stringMatching(
35
- new RegExp(
36
- "^https:\/\/github\.com\/"+repoOwner+"\/"+repoName+"\/commit\/[a-fA-F0-9]{40}$"
37
- )
38
- ),
39
- },
40
41
42
- });
+ const commitUrl = result?.commitUrl || "";
+ expect(commitUrl).toMatch(
+ new RegExp(
+ "^https://github.com/" +
+ repoOwner +
+ "/" +
+ repoName +
+ "/commit/[a-fA-F0-9]{40}$"
+ )
+ );
43
});
44
test("createCommitOnBranch, BAD branch", async () => {
45
expect(async () => {
0 commit comments