mirror of
https://github.com/game-ci/unity-activate
synced 2026-02-06 03:20:09 +08:00
Upgrade to use typescript instead of javascript and use game-ci images
* 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
This commit is contained in:
22
src/model/image-tag.test.ts
Normal file
22
src/model/image-tag.test.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import ImageTag from './image-tag';
|
||||
|
||||
describe('ImageTag', () => {
|
||||
describe('constructor', () => {
|
||||
const unityVersion = '2020.0.00f0';
|
||||
|
||||
it('can be called', () => {
|
||||
expect(() => new ImageTag(unityVersion)).not.toThrow();
|
||||
});
|
||||
|
||||
test.each(['2000.0.0f0', '2011.1.11f1'])('accepts %p version format', (version) => {
|
||||
expect(() => new ImageTag(version)).not.toThrow();
|
||||
});
|
||||
});
|
||||
describe('toString', () => {
|
||||
it('returns the correct version', () => {
|
||||
const image = new ImageTag('2099.1.1111');
|
||||
|
||||
expect(image.toString()).toStrictEqual(`unityci/editor:2099.1.1111-linux-il2cpp-0`);
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user