added missing rustup invocation and unit tests

This commit is contained in:
Yen-Lin Chen 2019-09-20 23:10:15 -07:00
parent 9aeef8beba
commit e80da8a52c
2 changed files with 4 additions and 2 deletions

View File

@ -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');
});
});

2
dist/index.js vendored

File diff suppressed because one or more lines are too long