@@ -83,7 +83,8 @@ defmodule CadetWeb.AssessmentsControllerTest do
8383 "earlySubmissionXp" => & 1 . config . early_submission_xp ,
8484 "hasVotingFeatures" => & 1 . has_voting_features ,
8585 "hasTokenCounter" => & 1 . has_token_counter ,
86- "isVotingPublished" => Assessments . is_voting_published ( & 1 . id )
86+ "isVotingPublished" => Assessments . is_voting_published ( & 1 . id ) ,
87+ "hoursBeforeEarlyXpDecay" => & 1 . config . hours_before_early_xp_decay
8788 }
8889 )
8990
@@ -173,7 +174,8 @@ defmodule CadetWeb.AssessmentsControllerTest do
173174 "earlySubmissionXp" => & 1 . config . early_submission_xp ,
174175 "hasVotingFeatures" => & 1 . has_voting_features ,
175176 "hasTokenCounter" => & 1 . has_token_counter ,
176- "isVotingPublished" => Assessments . is_voting_published ( & 1 . id )
177+ "isVotingPublished" => Assessments . is_voting_published ( & 1 . id ) ,
178+ "hoursBeforeEarlyXpDecay" => & 1 . config . hours_before_early_xp_decay
177179 }
178180 )
179181
@@ -289,6 +291,7 @@ defmodule CadetWeb.AssessmentsControllerTest do
289291 "isVotingPublished" => Assessments . is_voting_published ( & 1 . id ) ,
290292 "earlySubmissionXp" => & 1 . config . early_submission_xp ,
291293 "isGradingPublished" => nil ,
294+ "hoursBeforeEarlyXpDecay" => & 1 . config . hours_before_early_xp_decay ,
292295 "isPublished" =>
293296 if & 1 . config . type == hd ( configs ) . type do
294297 false
0 commit comments