@@ -32,10 +32,10 @@ func TestChallengeCacheBehavior(t *testing.T) {
3232 ID : challengeID ,
3333 Name : "Test Challenge" ,
3434 Description : scalars .HTML ("Test description" ),
35- Image : "https://example.com/image.png" ,
35+ Image : stringPtr ( "https://example.com/image.png" ) ,
3636 ProjectID : "PR01K8XV6J9H7BAEV49ZFVYS8R1K" ,
3737 EventID : nil ,
38- URL : "https://example.com/challenge" ,
38+ URL : stringPtr ( "https://example.com/challenge" ) ,
3939 ButtonText : "Start Challenge" ,
4040 PublishedAt : scalars.DateTime {Time : publishedAt },
4141 EndTime : & scalars.DateTime {Time : endTime },
@@ -57,7 +57,7 @@ func TestChallengeCacheBehavior(t *testing.T) {
5757 assert .Equal (t , challengeID , cachedChallenge .ID )
5858 assert .Equal (t , "Test Challenge" , cachedChallenge .Name )
5959 assert .Equal (t , scalars .HTML ("Test description" ), cachedChallenge .Description )
60- assert .Equal (t , "https://example.com/challenge" , cachedChallenge .URL )
60+ assert .Equal (t , "https://example.com/challenge" , * cachedChallenge .URL )
6161 assert .Equal (t , "Start Challenge" , cachedChallenge .ButtonText )
6262 assert .NotNil (t , cachedChallenge .EndTime )
6363}
@@ -74,9 +74,9 @@ func TestChallengeCacheExpiry(t *testing.T) {
7474 ID : challengeID ,
7575 Name : "Test Challenge" ,
7676 Description : scalars .HTML ("Test description" ),
77- Image : "https://example.com/image.png" ,
77+ Image : stringPtr ( "https://example.com/image.png" ) ,
7878 ProjectID : "PR01K8XV6J9H7BAEV49ZFVYS8R1K" ,
79- URL : "https://example.com/challenge" ,
79+ URL : stringPtr ( "https://example.com/challenge" ) ,
8080 ButtonText : "Start Challenge" ,
8181 PublishedAt : scalars.DateTime {Time : publishedAt },
8282 }
@@ -104,10 +104,10 @@ func TestChallengeModel(t *testing.T) {
104104 ID : "CL01K8XV6VK9ED2GBZSQ2VDTAT8T" ,
105105 Name : "Daily Bible Reading" ,
106106 Description : scalars .HTML ("<p>Read the daily passage</p>" ),
107- Image : "https://example.com/bible.png" ,
107+ Image : stringPtr ( "https://example.com/bible.png" ) ,
108108 ProjectID : "PR01K8XV6J9H7BAEV49ZFVYS8R1K" ,
109109 EventID : & eventID ,
110- URL : "https://example.com/bible-reading" ,
110+ URL : stringPtr ( "https://example.com/bible-reading" ) ,
111111 ButtonText : "Read Now" ,
112112 PublishedAt : scalars.DateTime {Time : publishedAt },
113113 EndTime : & scalars.DateTime {Time : endTime },
@@ -116,7 +116,7 @@ func TestChallengeModel(t *testing.T) {
116116 assert .Equal (t , "CL01K8XV6VK9ED2GBZSQ2VDTAT8T" , challenge .ID )
117117 assert .Equal (t , "Daily Bible Reading" , challenge .Name )
118118 assert .Equal (t , scalars .HTML ("<p>Read the daily passage</p>" ), challenge .Description )
119- assert .Equal (t , "https://example.com/bible-reading" , challenge .URL )
119+ assert .Equal (t , "https://example.com/bible-reading" , * challenge .URL )
120120 assert .Equal (t , "Read Now" , challenge .ButtonText )
121121 assert .NotNil (t , challenge .EventID )
122122 assert .Equal (t , "EV01K8XV6VK9ED2GBZSQ2VDTAT8T" , * challenge .EventID )
@@ -130,10 +130,10 @@ func TestChallengeModelWithoutEndTime(t *testing.T) {
130130 ID : "CL01K8XV6VK9ED2GBZSQ2VDTAT8T" ,
131131 Name : "Ongoing Challenge" ,
132132 Description : scalars .HTML ("Challenge with no end time" ),
133- Image : "https://example.com/ongoing.png" ,
133+ Image : stringPtr ( "https://example.com/ongoing.png" ) ,
134134 ProjectID : "PR01K8XV6J9H7BAEV49ZFVYS8R1K" ,
135135 EventID : nil ,
136- URL : "https://example.com/ongoing" ,
136+ URL : stringPtr ( "https://example.com/ongoing" ) ,
137137 ButtonText : "Participate" ,
138138 PublishedAt : scalars.DateTime {Time : publishedAt },
139139 EndTime : nil ,
@@ -157,9 +157,9 @@ func TestMultipleChallengesInCache(t *testing.T) {
157157 ID : "CL01K8XV6VK9ED2GBZSQ2VDTAT8T" ,
158158 Name : "Challenge 1" ,
159159 Description : scalars .HTML ("First challenge" ),
160- Image : "https://example.com/1.png" ,
160+ Image : stringPtr ( "https://example.com/1.png" ) ,
161161 ProjectID : "PR01K8XV6J9H7BAEV49ZFVYS8R1K" ,
162- URL : "https://example.com/challenge1" ,
162+ URL : stringPtr ( "https://example.com/challenge1" ) ,
163163 ButtonText : "Start" ,
164164 PublishedAt : scalars.DateTime {Time : publishedAt },
165165 EndTime : & scalars.DateTime {Time : endTime },
@@ -168,9 +168,9 @@ func TestMultipleChallengesInCache(t *testing.T) {
168168 ID : "CL01K8XV6VK9ED2GBZSQ2VDTAT9T" ,
169169 Name : "Challenge 2" ,
170170 Description : scalars .HTML ("Second challenge" ),
171- Image : "https://example.com/2.png" ,
171+ Image : stringPtr ( "https://example.com/2.png" ) ,
172172 ProjectID : "PR01K8XV6J9H7BAEV49ZFVYS8R1K" ,
173- URL : "https://example.com/challenge2" ,
173+ URL : stringPtr ( "https://example.com/challenge2" ) ,
174174 ButtonText : "Begin" ,
175175 PublishedAt : scalars.DateTime {Time : publishedAt },
176176 EndTime : nil ,
@@ -179,9 +179,9 @@ func TestMultipleChallengesInCache(t *testing.T) {
179179 ID : "CL01K8XV6VK9ED2GBZSQ2VDTATZZ" ,
180180 Name : "Challenge 3" ,
181181 Description : scalars .HTML ("Third challenge" ),
182- Image : "https://example.com/3.png" ,
182+ Image : stringPtr ( "https://example.com/3.png" ) ,
183183 ProjectID : "PR01K8XV6J9H7BAEV49ZFVYS8R1K" ,
184- URL : "https://example.com/challenge3" ,
184+ URL : stringPtr ( "https://example.com/challenge3" ) ,
185185 ButtonText : "Go" ,
186186 PublishedAt : scalars.DateTime {Time : publishedAt },
187187 EndTime : & scalars.DateTime {Time : endTime },
0 commit comments