mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-07 20:35:33 -04:00
36 lines
842 B
JavaScript
36 lines
842 B
JavaScript
import Project from './project';
|
|
|
|
jest.mock('./input');
|
|
|
|
describe('Platform', () => {
|
|
describe('relativePath', () => {
|
|
it('does not throw', () => {
|
|
expect(() => Project.relativePath).not.toThrow();
|
|
});
|
|
|
|
it('returns a string', () => {
|
|
expect(typeof Project.relativePath).toStrictEqual('string');
|
|
});
|
|
});
|
|
|
|
describe('absolutePath', () => {
|
|
it('does not throw', () => {
|
|
expect(() => Project.absolutePath).not.toThrow();
|
|
});
|
|
|
|
it('returns a string', () => {
|
|
expect(typeof Project.absolutePath).toStrictEqual('string');
|
|
});
|
|
});
|
|
|
|
describe('libraryFolder', () => {
|
|
it('does not throw', () => {
|
|
expect(() => Project.libraryFolder).not.toThrow();
|
|
});
|
|
|
|
it('returns a string', () => {
|
|
expect(typeof Project.libraryFolder).toStrictEqual('string');
|
|
});
|
|
});
|
|
});
|