Skip to content

Commit

Permalink
test: fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pasha-vuiko committed Nov 5, 2024
1 parent 923cd6b commit 65c7f2d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions prisma-fmt/src/get_datamodel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ mod tests {
"isReadOnly": false,
"hasDefaultValue": true,
"type": "Int",
"nativeType": null,
"default": {
"name": "autoincrement",
"args": []
Expand All @@ -91,6 +92,7 @@ mod tests {
"isReadOnly": false,
"hasDefaultValue": false,
"type": "String",
"nativeType": null,
"isGenerated": false,
"isUpdatedAt": false
},
Expand All @@ -104,6 +106,7 @@ mod tests {
"isReadOnly": false,
"hasDefaultValue": false,
"type": "Post",
"nativeType": null,
"relationName": "PostToUser",
"relationFromFields": [],
"relationToFields": [],
Expand All @@ -130,6 +133,7 @@ mod tests {
"isReadOnly": false,
"hasDefaultValue": true,
"type": "Int",
"nativeType": null,
"default": {
"name": "autoincrement",
"args": []
Expand All @@ -147,6 +151,7 @@ mod tests {
"isReadOnly": false,
"hasDefaultValue": false,
"type": "String",
"nativeType": null,
"isGenerated": false,
"isUpdatedAt": false
},
Expand All @@ -160,6 +165,7 @@ mod tests {
"isReadOnly": false,
"hasDefaultValue": false,
"type": "User",
"nativeType": null,
"relationName": "PostToUser",
"relationFromFields": [
"authorId"
Expand All @@ -180,6 +186,7 @@ mod tests {
"isReadOnly": true,
"hasDefaultValue": false,
"type": "Int",
"nativeType": null,
"isGenerated": false,
"isUpdatedAt": false
}
Expand Down
5 changes: 5 additions & 0 deletions prisma-fmt/src/get_dmmf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ mod tests {
"isReadOnly": false,
"hasDefaultValue": false,
"type": "String",
"nativeType": null,
"isGenerated": false,
"isUpdatedAt": false
},
Expand All @@ -397,6 +398,7 @@ mod tests {
"isReadOnly": true,
"hasDefaultValue": false,
"type": "String",
"nativeType": null,
"isGenerated": false,
"isUpdatedAt": false
},
Expand All @@ -410,6 +412,7 @@ mod tests {
"isReadOnly": false,
"hasDefaultValue": false,
"type": "B",
"nativeType": null,
"relationName": "AToB",
"relationFromFields": [
"b_id"
Expand Down Expand Up @@ -440,6 +443,7 @@ mod tests {
"isReadOnly": false,
"hasDefaultValue": false,
"type": "String",
"nativeType": null,
"isGenerated": false,
"isUpdatedAt": false
},
Expand All @@ -453,6 +457,7 @@ mod tests {
"isReadOnly": false,
"hasDefaultValue": false,
"type": "A",
"nativeType": null,
"relationName": "AToB",
"relationFromFields": [],
"relationToFields": [],
Expand Down

0 comments on commit 65c7f2d

Please sign in to comment.