From 4790968c32147ded0e86bc85c4aa99ad34ddf33f Mon Sep 17 00:00:00 2001 From: Siddhant Date: Fri, 24 Dec 2021 14:08:14 +0100 Subject: [PATCH] fix: studio tests (#2248) * chore: update snapshots * chore:P update snapshots --- .../studio/__snapshots__/test.ts.snap | 146 ++++-------------- 1 file changed, 27 insertions(+), 119 deletions(-) diff --git a/core-features/studio/__snapshots__/test.ts.snap b/core-features/studio/__snapshots__/test.ts.snap index bceba44e520d..7cd39834af61 100644 --- a/core-features/studio/__snapshots__/test.ts.snap +++ b/core-features/studio/__snapshots__/test.ts.snap @@ -6,24 +6,9 @@ Object { "channel": "-prisma", "payload": Object { "data": Object { - "params": Object { - "action": "create", - "args": Object { - "data": Object { - "email": "email3@test.com", - "id": 3, - "name": "Name 3", - }, - }, - "dataPath": Array [], - "model": "User", - "runInTransaction": false, - }, - "response": Object { - "email": "email3@test.com", - "id": 3, - "name": "Name 3", - }, + "email": "email3@test.com", + "id": 3, + "name": "Name 3", }, "error": null, }, @@ -37,22 +22,9 @@ Object { "channel": "-prisma", "payload": Object { "data": Object { - "params": Object { - "action": "findUnique", - "args": Object { - "where": Object { - "id": 3, - }, - }, - "dataPath": Array [], - "model": "User", - "runInTransaction": false, - }, - "response": Object { - "email": "email3@test.com", - "id": 3, - "name": "Name 3", - }, + "email": "email3@test.com", + "id": 3, + "name": "Name 3", }, "error": null, }, @@ -66,22 +38,9 @@ Object { "channel": "-prisma", "payload": Object { "data": Object { - "params": Object { - "action": "delete", - "args": Object { - "where": Object { - "id": 2, - }, - }, - "dataPath": Array [], - "model": "User", - "runInTransaction": false, - }, - "response": Object { - "email": "email2@test.com", - "id": 2, - "name": "Name 2", - }, + "email": "email2@test.com", + "id": 2, + "name": "Name 2", }, "error": null, }, @@ -94,20 +53,7 @@ Object { "action": "clientRequest", "channel": "-prisma", "payload": Object { - "data": Object { - "params": Object { - "action": "findUnique", - "args": Object { - "where": Object { - "id": 2, - }, - }, - "dataPath": Array [], - "model": "User", - "runInTransaction": false, - }, - "response": null, - }, + "data": null, "error": null, }, "requestId": 1, @@ -119,27 +65,18 @@ Object { "action": "clientRequest", "channel": "-prisma", "payload": Object { - "data": Object { - "params": Object { - "action": "findMany", - "args": Object {}, - "dataPath": Array [], - "model": "User", - "runInTransaction": false, + "data": Array [ + Object { + "email": "email1@test.com", + "id": 1, + "name": "Name 1", }, - "response": Array [ - Object { - "email": "email1@test.com", - "id": 1, - "name": "Name 1", - }, - Object { - "email": "email2@test.com", - "id": 2, - "name": "Name 2", - }, - ], - }, + Object { + "email": "email2@test.com", + "id": 2, + "name": "Name 2", + }, + ], "error": null, }, "requestId": 1, @@ -152,25 +89,9 @@ Object { "channel": "-prisma", "payload": Object { "data": Object { - "params": Object { - "action": "update", - "args": Object { - "data": Object { - "name": "Updated Name 1", - }, - "where": Object { - "id": 1, - }, - }, - "dataPath": Array [], - "model": "User", - "runInTransaction": false, - }, - "response": Object { - "email": "email1@test.com", - "id": 1, - "name": "Updated Name 1", - }, + "email": "email1@test.com", + "id": 1, + "name": "Updated Name 1", }, "error": null, }, @@ -184,22 +105,9 @@ Object { "channel": "-prisma", "payload": Object { "data": Object { - "params": Object { - "action": "findUnique", - "args": Object { - "where": Object { - "id": 1, - }, - }, - "dataPath": Array [], - "model": "User", - "runInTransaction": false, - }, - "response": Object { - "email": "email1@test.com", - "id": 1, - "name": "Updated Name 1", - }, + "email": "email1@test.com", + "id": 1, + "name": "Updated Name 1", }, "error": null, },