Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9c735e9
commit 2b2fb0e
Showing
4 changed files
with
352 additions
and
5 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import {graphql} from "@octokit/graphql" | ||
import {mockGitHubPinnedResponse, mockProjects} from "test-utils/mocks" | ||
import {getFeaturedProjects} from "utils/projects" | ||
|
||
jest.mock("@octokit/graphql") | ||
|
||
const mockOctokit = graphql.defaults as jest.Mock | ||
mockOctokit.mockReturnValue(() => mockGitHubPinnedResponse) | ||
|
||
test("gets featured projects", async () => { | ||
const projects = await getFeaturedProjects() | ||
expect(projects).toEqual(mockProjects) | ||
}) |
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
2b2fb0e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
bradgarropy-next – ./
bradgarropy-next-bradgarropy.vercel.app
bradgarropy-next.vercel.app
bradgarropy-next-git-next-bradgarropy.vercel.app