Skip to content

Commit

Permalink
remove old test
Browse files Browse the repository at this point in the history
  • Loading branch information
leiyre committed Oct 29, 2024
1 parent a826e1b commit 5db1c70
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions argilla-frontend/v1/domain/entities/hub/DatasetCreation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,34 +120,6 @@ describe("DatasetCreation", () => {
]);
});

it("create a required field if the dataset has just one field", () => {
const datasetInfoWithOneField = {
default: {
...datasetInfo.default,
features: {
text_field: {
dtype: "string",
_type: "Value",
},
},
},
};

const builder = new DatasetCreationBuilder(
"FAKE",
datasetInfoWithOneField
);

const datasetCreation = builder.build();

const field = datasetCreation.fields[0];

expect(field.name).toBe("text_field");
expect(field.type.isTextType).toBeTruthy();
expect(field.required).toBeTruthy();
expect(datasetCreation.fields.length).toBe(1);
});

it("create a required question if the dataset has just one field", () => {
const datasetInfoWithOneQuestion = {
default: {
Expand Down

0 comments on commit 5db1c70

Please sign in to comment.