-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(fdr): add local test for git to confirm things are hooked up (#…
- Loading branch information
1 parent
df9ad10
commit 6757b57
Showing
2 changed files
with
30 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { inject } from "vitest"; | ||
import { getAPIResponse, getClient } from "../util"; | ||
|
||
it("register repo", async () => { | ||
const fdr = getClient({ authed: true, url: inject("url") }); | ||
await fdr.git.upsertRepository({ | ||
type: "config", | ||
id: { | ||
type: "github", | ||
id: "test", | ||
}, | ||
name: "name", | ||
owner: "owner", | ||
fullName: "repository.full_name", | ||
url: "repository.html_url", | ||
repositoryOwnerOrganizationId: "organizationId", | ||
defaultBranchChecks: [], | ||
}); | ||
|
||
const registeredRepo = getAPIResponse(await fdr.git.getRepository("owner", "name")); | ||
|
||
expect(registeredRepo.id).toEqual({ | ||
type: "github", | ||
id: "test", | ||
}); | ||
}); |
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