File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed
Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ describe("listDatasets", () => {
77 const results : DatasetEntry [ ] = [ ] ;
88
99 for await ( const entry of listDatasets ( { search : { owner : "hf-doc-build" } } ) ) {
10- if ( entry . name !== "hf-doc-build/doc-build-dev-test " ) {
10+ if ( entry . name !== "hf-doc-build/doc-build" && entry . name !== "hf-doc-build/doc-build-dev ") {
1111 continue ;
1212 }
1313 if ( typeof entry . downloads === "number" ) {
@@ -23,16 +23,25 @@ describe("listDatasets", () => {
2323 results . push ( entry ) ;
2424 }
2525
26- expect ( results ) . deep . equal ( [
26+ expect ( results . sort ( ( a , b ) => a . id . localeCompare ( b . id ) ) ) . to . deep . equal ( [
2727 {
28- id : "659086ddbea632dc9491adaf " ,
29- name : "hf-doc-build/doc-build-dev-test " ,
28+ id : "6356b19985da6f13863228bd " ,
29+ name : "hf-doc-build/doc-build" ,
3030 private : false ,
3131 gated : false ,
3232 downloads : 0 ,
3333 likes : 0 ,
3434 updatedAt : new Date ( 0 ) ,
3535 } ,
36+ {
37+ id : "636a1b69f2f9ec4289c4c19e" ,
38+ name : "hf-doc-build/doc-build-dev" ,
39+ gated : false ,
40+ private : false ,
41+ downloads : 0 ,
42+ likes : 0 ,
43+ updatedAt : new Date ( 0 ) ,
44+ } ,
3645 ] ) ;
3746 } ) ;
3847} ) ;
You can’t perform that action at this time.
0 commit comments