Skip to content

Commit

Permalink
Add defaultValue fields to admin settings snapshots
Browse files Browse the repository at this point in the history
This commit adds `defaultValue` fields to the admin settings snapshots for `User` and `Post` entities. This will ensure the snapshots accurately reflect the initial default values for various fields, aiding in better test coverage and consistency.
  • Loading branch information
AhmedElywa committed Nov 11, 2024
1 parent 49901e3 commit 5a0df87
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ exports[`Generate Json Object For Admin Tables Should back with Json Settings 1`
"fields": [
{
"create": false,
"defaultValue": "autoincrement()",
"editor": false,
"filter": true,
"id": "User.id",
Expand All @@ -42,6 +43,7 @@ exports[`Generate Json Object For Admin Tables Should back with Json Settings 1`
},
{
"create": false,
"defaultValue": "now()",
"editor": false,
"filter": true,
"id": "User.createdAt",
Expand All @@ -63,6 +65,7 @@ exports[`Generate Json Object For Admin Tables Should back with Json Settings 1`
},
{
"create": true,
"defaultValue": undefined,
"editor": false,
"filter": true,
"id": "User.email",
Expand All @@ -84,6 +87,7 @@ exports[`Generate Json Object For Admin Tables Should back with Json Settings 1`
},
{
"create": true,
"defaultValue": undefined,
"editor": false,
"filter": true,
"id": "User.name",
Expand All @@ -105,6 +109,7 @@ exports[`Generate Json Object For Admin Tables Should back with Json Settings 1`
},
{
"create": true,
"defaultValue": undefined,
"editor": false,
"filter": true,
"id": "User.password",
Expand All @@ -126,6 +131,7 @@ exports[`Generate Json Object For Admin Tables Should back with Json Settings 1`
},
{
"create": true,
"defaultValue": ""{}"",
"editor": false,
"filter": true,
"id": "User.permissions",
Expand All @@ -147,6 +153,7 @@ exports[`Generate Json Object For Admin Tables Should back with Json Settings 1`
},
{
"create": true,
"defaultValue": undefined,
"editor": false,
"filter": true,
"id": "User.posts",
Expand Down Expand Up @@ -180,6 +187,7 @@ exports[`Generate Json Object For Admin Tables Should back with Json Settings 1`
"fields": [
{
"create": false,
"defaultValue": "autoincrement()",
"editor": false,
"filter": true,
"id": "Post.id",
Expand All @@ -201,6 +209,7 @@ exports[`Generate Json Object For Admin Tables Should back with Json Settings 1`
},
{
"create": true,
"defaultValue": "false",
"editor": false,
"filter": true,
"id": "Post.published",
Expand All @@ -222,6 +231,7 @@ exports[`Generate Json Object For Admin Tables Should back with Json Settings 1`
},
{
"create": true,
"defaultValue": undefined,
"editor": false,
"filter": true,
"id": "Post.title",
Expand All @@ -243,6 +253,7 @@ exports[`Generate Json Object For Admin Tables Should back with Json Settings 1`
},
{
"create": true,
"defaultValue": undefined,
"editor": false,
"filter": true,
"id": "Post.author",
Expand All @@ -263,6 +274,7 @@ exports[`Generate Json Object For Admin Tables Should back with Json Settings 1`
},
{
"create": false,
"defaultValue": undefined,
"editor": false,
"filter": true,
"id": "Post.authorId",
Expand All @@ -284,6 +296,7 @@ exports[`Generate Json Object For Admin Tables Should back with Json Settings 1`
},
{
"create": false,
"defaultValue": "now()",
"editor": false,
"filter": true,
"id": "Post.createdAt",
Expand All @@ -305,6 +318,7 @@ exports[`Generate Json Object For Admin Tables Should back with Json Settings 1`
},
{
"create": false,
"defaultValue": undefined,
"editor": false,
"filter": true,
"id": "Post.updatedAt",
Expand Down

0 comments on commit 5a0df87

Please sign in to comment.