From 4e889389e5439a41eb05ae904368295adf3e40f7 Mon Sep 17 00:00:00 2001 From: Kalash Nainwal Date: Tue, 23 Jul 2024 11:06:01 -0700 Subject: [PATCH] fixing unit tests --- data_test.go | 7 ------- test/gen.sh | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/data_test.go b/data_test.go index bf58de2..26ea12e 100644 --- a/data_test.go +++ b/data_test.go @@ -2890,13 +2890,6 @@ type mongoAttributesSparseUser struct { ParentType *string `bson:"parenttype,omitempty"` UserName *string `bson:"username,omitempty"` } -// RootIdentity represents the Identity of the object. -var RootIdentity = Identity{ - Name: "root", - Category: "root", - Package: "todo-list", - Private: false, -} // Root represents the model of a root type Root struct { diff --git a/test/gen.sh b/test/gen.sh index 2352b20..16d84ff 100755 --- a/test/gen.sh +++ b/test/gen.sh @@ -27,7 +27,7 @@ EOF tail -n +14 model/task.go tail -n +20 model/unmarshalable.go tail -n +14 model/user.go - tail -n +14 model/root.go + tail -n +21 model/root.go tail -n +7 model/identities_registry.go tail -n +7 model/relationships_registry.go } >>../data_test.go