Use correct branch name and update tests

This commit is contained in:
Amiel Martin
2021-09-15 09:23:41 -08:00
parent 8aa7614bc1
commit cb5f4480b2
2 changed files with 3 additions and 5 deletions

View File

@@ -105,7 +105,7 @@ describe("run", () => {
});
it("adds labels based on the branch names that match the glob pattern", async () => {
github.context.ref = "test/testing-time";
github.context.payload.pull_request!.head = {ref: "test/testing-time"};
usingLabelerConfigYaml("branches.yml");
await run();
@@ -119,7 +119,7 @@ describe("run", () => {
});
it("adds labels based on branch names that match different glob patterns", async () => {
github.context.ref = "my/feature/that-i-like";
github.context.payload.pull_request!.head = {ref: "my/feature/that-i-like"};
usingLabelerConfigYaml("branches.yml");
await run();