diff --git a/packages/server/src/api/routes/tests/viewV2.spec.ts b/packages/server/src/api/routes/tests/viewV2.spec.ts index b2a814aa0e..29e5f98c26 100644 --- a/packages/server/src/api/routes/tests/viewV2.spec.ts +++ b/packages/server/src/api/routes/tests/viewV2.spec.ts @@ -121,32 +121,6 @@ describe("/v2/views", () => { }) }) - it("throw an exception if the schema overrides a non UI field", async () => { - const newView: CreateViewRequest = { - name: generator.name(), - tableId: config.table!._id!, - schema: { - Price: { - name: "Price", - type: FieldType.NUMBER, - visible: true, - }, - Category: { - name: "Category", - type: FieldType.STRING, - constraints: { - type: "string", - presence: true, - }, - }, - } as Record, - } - - await config.api.viewV2.create(newView, { - expectStatus: 400, - }) - }) - it("will not throw an exception if the schema is 'deleting' non UI fields", async () => { const newView: CreateViewRequest = { name: generator.name(), @@ -373,32 +347,6 @@ describe("/v2/views", () => { }) }) - it("throw an exception if the schema overrides a non UI field", async () => { - await config.api.viewV2.update( - { - ...view, - schema: { - Price: { - name: "Price", - type: FieldType.NUMBER, - visible: true, - }, - Category: { - name: "Category", - type: FieldType.STRING, - constraints: { - type: "string", - presence: true, - }, - }, - } as Record, - }, - { - expectStatus: 400, - } - ) - }) - it("will not throw an exception if the schema is 'deleting' non UI fields", async () => { await config.api.viewV2.update( {