-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Yoriyasu Yano <[email protected]>
- Loading branch information
1 parent
ce4c86e
commit 24bc901
Showing
3 changed files
with
29 additions
and
15 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,12 +1,13 @@ | ||
import { assert } from "https://deno.land/[email protected]/testing/asserts.ts"; | ||
import { | ||
compileRuleFn, | ||
emptyChangeSetMetadata, | ||
IGitHubRepository, | ||
patchFromGitHubPullRequest, | ||
RuleFnSourceLang, | ||
RuleLogMode, | ||
runRule, | ||
} from "npm:@fensak-io/reng@^1.1.3"; | ||
} from "npm:@fensak-io/reng@^1.2.1"; | ||
import { Octokit } from "npm:@octokit/rest@^20.0.0"; | ||
|
||
const __dirname = new URL(".", import.meta.url).pathname; | ||
|
@@ -24,10 +25,7 @@ const testRepo: IGitHubRepository = { | |
const opts = { logMode: RuleLogMode.Console }; | ||
|
||
Deno.test("No changes should be approved", async () => { | ||
const result = await runRule(ruleFn, [], { | ||
sourceBranch: "foo", | ||
targetBranch: "bar", | ||
}, opts); | ||
const result = await runRule(ruleFn, [], emptyChangeSetMetadata, opts); | ||
assert(result.approve); | ||
}); | ||
|
||
|