generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from Roblox/APT-576
APT-576 adding functionality to check if all orgs are the same in foreman.toml
- Loading branch information
Showing
10 changed files
with
649 additions
and
435 deletions.
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
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
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,32 @@ | ||
import configFile from "../src/configFile"; | ||
import {parse} from "toml"; | ||
|
||
test("get off my back, Jest", () => { | ||
expect(5).toEqual(5); | ||
}); | ||
|
||
test("checkSameOrgToolSpec same org", () => { | ||
let config = ` | ||
[tools]\n | ||
tool1 = { source = "org1/tool1", version = "1.0.0" }\n | ||
tool2 = { source = "org1/tool2", version = "1.0.0" }\n | ||
tool3 = { source = "org1/tool3", version = "1.0.0" }\n | ||
`; | ||
let manifestContent = parse(config); | ||
expect(configFile.checkSameOrgToolSpecs(manifestContent, "org1")).toEqual( | ||
true | ||
); | ||
}); | ||
|
||
test("checkSameOrgToolSpec different org", () => { | ||
let config = ` | ||
[tools]\n | ||
tool1 = { source = "org1/tool1", version = "1.0.0" }\n | ||
tool2 = { source = "org2/tool2", version = "1.0.0" }\n | ||
tool3 = { source = "org1/tool3", version = "1.0.0" }\n | ||
`; | ||
let manifestContent = parse(config); | ||
expect(configFile.checkSameOrgToolSpecs(manifestContent, "org1")).toEqual( | ||
false | ||
); | ||
}); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.