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 13becc9 commit 4e3da78Copy full SHA for 4e3da78
packages/hub/src/lib/list-datasets.spec.ts
@@ -7,7 +7,7 @@ describe("listDatasets", () => {
7
const results: DatasetEntry[] = [];
8
9
for await (const entry of listDatasets({ search: { owner: "hf-doc-build" } })) {
10
- if (entry.name === "hf-doc-build/doc-build-dev-test") {
+ if (entry.name !== "hf-doc-build/doc-build" && entry.name !== "hf-doc-build/doc-build-dev") {
11
continue;
12
}
13
if (typeof entry.downloads === "number") {
@@ -23,7 +23,7 @@ describe("listDatasets", () => {
23
results.push(entry);
24
25
26
- expect(results).deep.equal([
+ expect(results.sort((a, b) => a.id.localeCompare(b.id))).to.deep.equal([
27
{
28
id: "6356b19985da6f13863228bd",
29
name: "hf-doc-build/doc-build",
0 commit comments