Skip to content

Commit 4832bf7

Browse files
committed
re-add accidentially deleted test for GameRules.ConVars()
1 parent ccc65d3 commit 4832bf7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/demoinfocs/game_state_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,13 @@ func TestParticipants_SpottedBy(t *testing.T) {
278278
assert.ElementsMatch(t, []*common.Player{spotted1, spotted2}, spotted)
279279
}
280280

281+
func TestGameRules_ConVars(t *testing.T) {
282+
cvars := make(map[string]string)
283+
gr := gameRules{conVars: cvars}
284+
285+
assert.Equal(t, cvars, gr.ConVars())
286+
}
287+
281288
func TestGameRules_Entity(t *testing.T) {
282289
ent := stfake.NewEntityWithProperty("m_iGameMode", st.PropertyValue{IntVal: 1})
283290
gr := gameRules{

0 commit comments

Comments
 (0)