mirror of
https://github.com/game-ci/unity-activate
synced 2026-01-28 21:59:05 +08:00
* Upgrade to using typescript instead of javascript and use game-ci images instead of gableroux images * Fix errors * Update bash script * Fix test * Remove test * Add versioning * Update husky * Update husky * Update husky * Update package.json * Update husky and image-tag * Use 'yarn lint-staged' instead of 'npx lint-staged' * Update entrypoint.sh
19 lines
536 B
TypeScript
19 lines
536 B
TypeScript
import * as core from '@actions/core';
|
|
|
|
import Input from './input';
|
|
|
|
describe('Input', () => {
|
|
describe('unityVersion', () => {
|
|
it('returns the default value', () => {
|
|
expect(Input.unityVersion).toStrictEqual('2019.2.11f1');
|
|
});
|
|
|
|
it('takes input from the users workflow', () => {
|
|
const mockValue = '2020.4.99f9';
|
|
const spy = jest.spyOn(core, 'getInput').mockReturnValue(mockValue);
|
|
expect(Input.unityVersion).toStrictEqual(mockValue);
|
|
expect(spy).toHaveBeenCalledTimes(1);
|
|
});
|
|
});
|
|
});
|