mirror of
https://github.com/game-ci/unity-builder.git
synced 2026-02-01 14:19:07 +08:00
21 lines
552 B
JavaScript
21 lines
552 B
JavaScript
import path from 'path';
|
|
import Action from './action';
|
|
|
|
describe('Action', () => {
|
|
describe('compatibility check', () => {
|
|
it('throws for anything other than linux', () => {
|
|
if (process.platform !== 'linux') {
|
|
expect(() => Action.checkCompatibility()).toThrow();
|
|
} else {
|
|
expect(() => Action.checkCompatibility()).not.toThrow();
|
|
}
|
|
});
|
|
});
|
|
|
|
it('returns the root folder of the action', () => {
|
|
const { rootFolder, name } = Action;
|
|
|
|
expect(path.basename(rootFolder)).toStrictEqual(name);
|
|
});
|
|
});
|