Skip to content

Commit 124e0f8

Browse files
authored
Add tests for path not found (#57)
1 parent 537af69 commit 124e0f8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/lib/Tests.re

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,15 @@ describe("Duplicates", ({test}) => {
4141
expect.fn(extract).toThrowException(Extractor.DuplicateMessageId("test3.msg1.1"));
4242
});
4343
});
44+
45+
describe("Path not found", ({test}) => {
46+
test("dirNotFound", ({expect}) => {
47+
let extract = () => extractAndGetJson(["someDir"]);
48+
expect.fn(extract).toThrowException(Extractor.PathNotFound("someDir"));
49+
});
50+
51+
test("fileNotFound", ({expect}) => {
52+
let extract = () => extractAndGetJson(["testData/test1/SomeFile.re"]);
53+
expect.fn(extract).toThrowException(Extractor.PathNotFound("testData/test1/SomeFile.re"));
54+
});
55+
});

0 commit comments

Comments
 (0)