Skip to content

Commit 5e54a87

Browse files
committed
Add test for scripts folder allowance
1 parent 4b0a984 commit 5e54a87

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/test/arm-lease-validation/arm-lease-validation.test.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ describe("validate-arm-leases", () => {
3131
expect(isFileAllowed(".github/arm-leases/README.md")).toBe(true);
3232
});
3333

34+
it("allows script files under scripts folder", () => {
35+
expect(isFileAllowed(".github/arm-leases/scripts/fetch-resource-providers.js")).toBe(true);
36+
expect(isFileAllowed(".github/arm-leases/scripts/generate-lease-files.js")).toBe(true);
37+
expect(isFileAllowed(".github/arm-leases/scripts/tests/fetch-resource-providers.test.js")).toBe(true);
38+
expect(isFileAllowed(".github/arm-leases/scripts/tests/generate-lease-files.test.js")).toBe(true);
39+
});
40+
3441
it("rejects invalid files", () => {
3542
expect(isFileAllowed(".github/arm-leases/anything/here")).toBe(false);
3643
expect(isFileAllowed(".github/arm-leases/testservice/Microsoft.Test/other.yaml")).toBe(false);

0 commit comments

Comments
 (0)