Add some more basic tests 🤷‍♂️

This commit is contained in:
Webber
2020-01-27 23:03:29 +01:00
committed by Webber Takken
parent fe2311ef4b
commit 4051832dc0
9 changed files with 217 additions and 1 deletions

33
src/model/project.test.js Normal file
View File

@@ -0,0 +1,33 @@
import Project from './project';
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');
});
});
});