Skip to content

Commit

Permalink
App URLs updated
Browse files Browse the repository at this point in the history
  • Loading branch information
philrenaud committed Sep 17, 2021
1 parent 483d4b3 commit 3fd8e7c
Show file tree
Hide file tree
Showing 3 changed files with 9,341 additions and 13,622 deletions.
8 changes: 4 additions & 4 deletions __tests__/util.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ test("getClubhouseURLFromPullRequest", async () => {
test("getClubhouseURLFromPullRequest desc", async () => {
const payload = {
pull_request: {
body: "Clubhouse story: https://app.clubhouse.io/org/story/12345",
body: "Clubhouse story: https://app.shortcut.com/org/story/12345",
number: 123,
},
repository: {
Expand All @@ -260,7 +260,7 @@ test("getClubhouseURLFromPullRequest desc", async () => {
};

const url = await util.getClubhouseURLFromPullRequest(payload as any);
expect(url).toEqual("https://app.clubhouse.io/org/story/12345");
expect(url).toEqual("https://app.shortcut.com/org/story/12345");
});

test("getClubhouseURLFromPullRequest comment", async () => {
Expand All @@ -281,11 +281,11 @@ test("getClubhouseURLFromPullRequest comment", async () => {
.get("/repos/octocat/example/issues/123/comments")
.reply(200, [
{ body: "no url here, either!" },
{ body: "Clubhouse story: https://app.clubhouse.io/org/story/12345" },
{ body: "Clubhouse story: https://app.shortcut.com/org/story/12345" },
]);

const url = await util.getClubhouseURLFromPullRequest(payload as any);
expect(url).toEqual("https://app.clubhouse.io/org/story/12345");
expect(url).toEqual("https://app.shortcut.com/org/story/12345");

scope.done();
});
Expand Down
Loading

0 comments on commit 3fd8e7c

Please sign in to comment.