mirror of
https://github.com/actions-rs/toolchain.git
synced 2025-08-14 21:05:05 +00:00
added missing rustup invocation and unit tests
This commit is contained in:
parent
9aeef8beba
commit
e80da8a52c
@ -3,7 +3,8 @@ import * as args from '../src/args'
|
|||||||
const testEnvVars = {
|
const testEnvVars = {
|
||||||
INPUT_TOOLCHAIN: 'nightly-2019-04-20',
|
INPUT_TOOLCHAIN: 'nightly-2019-04-20',
|
||||||
INPUT_DEFAULT: 'false',
|
INPUT_DEFAULT: 'false',
|
||||||
INPUT_OVERRIDE: 'true'
|
INPUT_OVERRIDE: 'true',
|
||||||
|
INPUT_COMPONENT: 'clippy'
|
||||||
}
|
}
|
||||||
|
|
||||||
describe('actions-rs/toolchain', () => {
|
describe('actions-rs/toolchain', () => {
|
||||||
@ -18,5 +19,6 @@ describe('actions-rs/toolchain', () => {
|
|||||||
expect(result.name).toBe('nightly-2019-04-20');
|
expect(result.name).toBe('nightly-2019-04-20');
|
||||||
expect(result.default).toBe(false);
|
expect(result.default).toBe(false);
|
||||||
expect(result.override).toBe(true);
|
expect(result.override).toBe(true);
|
||||||
|
expect(result.component).toBe('clippy');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user