We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 537af69 commit 124e0f8Copy full SHA for 124e0f8
test/lib/Tests.re
@@ -41,3 +41,15 @@ describe("Duplicates", ({test}) => {
41
expect.fn(extract).toThrowException(Extractor.DuplicateMessageId("test3.msg1.1"));
42
});
43
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