Skip to content

Commit

Permalink
Renamed repo to dotfensak-deno-template
Browse files Browse the repository at this point in the history
Signed-off-by: Yoriyasu Yano <[email protected]>
  • Loading branch information
yorinasub17 committed Oct 13, 2023
1 parent de73a1e commit 5744c4e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rules/sample_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const octokit = new Octokit({
});
const testRepo: IGitHubRepository = {
owner: "fensak-io",
name: "dotfensak-template",
name: "dotfensak-deno-template",
};
const opts = { logMode: RuleLogMode.Console };

Expand All @@ -30,23 +30,23 @@ Deno.test("No changes should be approved", async () => {

Deno.test("Changes only to README should be approved", async () => {
// View PR at
// https://github.com/fensak-io/dotfensak-template/pull/1
// https://github.com/fensak-io/dotfensak-deno-template/pull/1
const patches = await patchFromGitHubPullRequest(octokit, testRepo, 1);
const result = await runRule(ruleFn, patches.patchList, opts);
assert(result.approve);
});

Deno.test("Changes to non-README files should be rejected", async () => {
// View PR at
// https://github.com/fensak-io/dotfensak-template/pull/2
// https://github.com/fensak-io/dotfensak-deno-template/pull/2
const patches = await patchFromGitHubPullRequest(octokit, testRepo, 2);
const result = await runRule(ruleFn, patches.patchList, opts);
assert(!result.approve);
});

Deno.test("Change containing more than one file should be rejected", async () => {
// View PR at
// https://github.com/fensak-io/dotfensak-template/pull/4
// https://github.com/fensak-io/dotfensak-deno-template/pull/4
const patches = await patchFromGitHubPullRequest(octokit, testRepo, 4);
const result = await runRule(ruleFn, patches.patchList, opts);
assert(!result.approve);
Expand Down

0 comments on commit 5744c4e

Please sign in to comment.