forked from guilhem/rss-issues-action
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from rimrul/node20
Update to node 20
- Loading branch information
Showing
9 changed files
with
5,873 additions
and
9,792 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,9 +50,9 @@ test('handles feeds without any entries', async () => { | |
mockHTTPSGet.__RETURN__ = '<feed xmlns="http://www.w3.org/2005/Atom" />' | ||
await run() | ||
|
||
expect(https.get).toBeCalledTimes(1) | ||
expect(octokit.issues.listForRepo).not.toBeCalled() | ||
expect(octokit.issues.create).not.toBeCalled() | ||
expect(https.get).toHaveBeenCalledTimes(1) | ||
expect(octokit.issues.listForRepo).not.toHaveBeenCalled() | ||
expect(octokit.issues.create).not.toHaveBeenCalled() | ||
}) | ||
|
||
test('handles feed entries without titles', async () => { | ||
|
@@ -62,9 +62,9 @@ test('handles feed entries without titles', async () => { | |
octokit.issues.listForRepo.mockReturnValueOnce({ data: [] }) | ||
await run() | ||
|
||
expect(https.get).toBeCalledTimes(1) | ||
expect(octokit.issues.listForRepo).toBeCalledTimes(1) | ||
expect(octokit.issues.create).toBeCalledWith({ | ||
expect(https.get).toHaveBeenCalledTimes(1) | ||
expect(octokit.issues.listForRepo).toHaveBeenCalledTimes(1) | ||
expect(octokit.issues.create).toHaveBeenCalledWith({ | ||
owner: 'owner', | ||
repo: 'repo', | ||
title: new Date(date).toUTCString(), | ||
|
@@ -106,7 +106,7 @@ Signed-off-by: Johannes Schindelin &lt;[email protected]&gt;< | |
octokit.issues.listForRepo.mockReturnValueOnce({ data: [] }) | ||
await run() | ||
|
||
expect(octokit.issues.create).toBeCalledWith({ | ||
expect(octokit.issues.create).toHaveBeenCalledWith({ | ||
owner: 'owner', | ||
repo: 'repo', | ||
title: 'ci(release-tags): use newer versions of Actions', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.