(file)
| 3657 | describe("validator", () => { |
| 3658 | it("rejects with custom error", async () => { |
| 3659 | const validator = (file) => { |
| 3660 | if (/dogs/i.test(file.name)) |
| 3661 | return { code: "dogs-not-allowed", message: "Dogs not allowed" }; |
| 3662 | |
| 3663 | return null; |
| 3664 | }; |
| 3665 | |
| 3666 | const onDropSpy = jest.fn(); |
| 3667 |
no outgoing calls
no test coverage detected
searching dependent graphs…