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 a35286a commit 45b7ec8Copy full SHA for 45b7ec8
test/lib/sources/huggingFaceSource.test.ts
@@ -30,6 +30,15 @@ test.for([
30
expect(() => parseHuggingFaceUrl(url)).to.throw()
31
})
32
33
+test.for([
34
+ ['https://huggingface.co/namespace/model'],
35
+ ['https://huggingface.co/namespace/model/'],
36
+ ['https://huggingface.co/spaces/namespace/space'],
37
+ ['https://huggingface.co/spaces/namespace/space/'],
38
+])('model or space huggingface URL throws: %s', ([url]) => {
39
+ expect(() => parseHuggingFaceUrl(url)).to.throw()
40
+})
41
+
42
test.for([
43
['https://huggingface.co/datasets/namespace/repo', 'namespace/repo'],
44
['https://huggingface.co/datasets/namespace/repo/', 'namespace/repo'],
0 commit comments