mirror of
https://github.com/actions-rs/toolchain.git
synced 2025-09-06 16:21:57 +03:00
added missing rustup invocation and unit tests
This commit is contained in:
parent
9aeef8beba
commit
e80da8a52c
2 changed files with 4 additions and 2 deletions
|
@ -3,7 +3,8 @@ import * as args from '../src/args'
|
|||
const testEnvVars = {
|
||||
INPUT_TOOLCHAIN: 'nightly-2019-04-20',
|
||||
INPUT_DEFAULT: 'false',
|
||||
INPUT_OVERRIDE: 'true'
|
||||
INPUT_OVERRIDE: 'true',
|
||||
INPUT_COMPONENT: 'clippy'
|
||||
}
|
||||
|
||||
describe('actions-rs/toolchain', () => {
|
||||
|
@ -18,5 +19,6 @@ describe('actions-rs/toolchain', () => {
|
|||
expect(result.name).toBe('nightly-2019-04-20');
|
||||
expect(result.default).toBe(false);
|
||||
expect(result.override).toBe(true);
|
||||
expect(result.component).toBe('clippy');
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue