Skip to content

Commit

Permalink
fix: studio tests (#2248)
Browse files Browse the repository at this point in the history
* chore: update snapshots

* chore:P update snapshots
  • Loading branch information
Siddhant authored Dec 24, 2021
1 parent ade796a commit 4790968
Showing 1 changed file with 27 additions and 119 deletions.
146 changes: 27 additions & 119 deletions core-features/studio/__snapshots__/test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,9 @@ Object {
"channel": "-prisma",
"payload": Object {
"data": Object {
"params": Object {
"action": "create",
"args": Object {
"data": Object {
"email": "[email protected]",
"id": 3,
"name": "Name 3",
},
},
"dataPath": Array [],
"model": "User",
"runInTransaction": false,
},
"response": Object {
"email": "[email protected]",
"id": 3,
"name": "Name 3",
},
"email": "[email protected]",
"id": 3,
"name": "Name 3",
},
"error": null,
},
Expand All @@ -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": "[email protected]",
"id": 3,
"name": "Name 3",
},
"email": "[email protected]",
"id": 3,
"name": "Name 3",
},
"error": null,
},
Expand All @@ -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": "[email protected]",
"id": 2,
"name": "Name 2",
},
"email": "[email protected]",
"id": 2,
"name": "Name 2",
},
"error": null,
},
Expand All @@ -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,
Expand All @@ -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": "[email protected]",
"id": 1,
"name": "Name 1",
},
"response": Array [
Object {
"email": "[email protected]",
"id": 1,
"name": "Name 1",
},
Object {
"email": "[email protected]",
"id": 2,
"name": "Name 2",
},
],
},
Object {
"email": "[email protected]",
"id": 2,
"name": "Name 2",
},
],
"error": null,
},
"requestId": 1,
Expand All @@ -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": "[email protected]",
"id": 1,
"name": "Updated Name 1",
},
"email": "[email protected]",
"id": 1,
"name": "Updated Name 1",
},
"error": null,
},
Expand All @@ -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": "[email protected]",
"id": 1,
"name": "Updated Name 1",
},
"email": "[email protected]",
"id": 1,
"name": "Updated Name 1",
},
"error": null,
},
Expand Down

0 comments on commit 4790968

Please sign in to comment.