mirror of
https://github.com/actions-rs/toolchain.git
synced 2025-09-06 16:21:57 +03:00
Add test for toml, fix bug returning wrong type
This commit is contained in:
parent
4fdb216e18
commit
6bbb331ffc
3 changed files with 16 additions and 3 deletions
|
@ -71,4 +71,17 @@ describe("actions-rs/toolchain", () => {
|
|||
|
||||
expect(args.name).toBe("1.39.0");
|
||||
});
|
||||
|
||||
it("supports toml override file", function () {
|
||||
const rustToolchainFile = tempWriteSync(`
|
||||
[toolchain]
|
||||
channel = "stable"
|
||||
`);
|
||||
|
||||
const args = morph(() => {
|
||||
return getToolchainArgs(rustToolchainFile);
|
||||
}, {});
|
||||
|
||||
expect(args.name).toBe("stable");
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue