Projectpath error message (#274)

* Improve error message

* Improve error message
This commit is contained in:
David Finol
2021-07-01 06:38:44 -05:00
committed by GitHub
parent 2fc01a1db4
commit b66dffbf92
4 changed files with 18 additions and 10 deletions

View File

@@ -14,8 +14,8 @@ describe('Unity Versioning', () => {
});
describe('read', () => {
it('does not throw', () => {
expect(() => UnityVersioning.read('')).not.toThrow();
it('throws for invalid path', () => {
expect(() => UnityVersioning.read('')).toThrow(Error);
});
it('reads from test-project', () => {