add mock test for new variable

This commit is contained in:
vuminh224
2026-03-23 16:21:07 +01:00
parent b092e72c82
commit 6b4dab4257
+2
View File
@@ -125,6 +125,7 @@ var _ = Describe("discordPlugin", func() {
pdk.PDKMock.On("GetConfig", caaEnabledKey).Return("", false)
pdk.PDKMock.On("GetConfig", activityNameKey).Return("", false)
pdk.PDKMock.On("GetConfig", spotifyLinksKey).Return("", false)
pdk.PDKMock.On("GetConfig", albumLineKey).Return("", false)
// Connect mocks (isConnected check via heartbeat)
host.CacheMock.On("GetInt", "discord.seq.testuser").Return(int64(0), false, errors.New("not found"))
@@ -178,6 +179,7 @@ var _ = Describe("discordPlugin", func() {
pdk.PDKMock.On("GetConfig", caaEnabledKey).Return("", false)
pdk.PDKMock.On("GetConfig", activityNameKey).Return(configValue, configExists)
pdk.PDKMock.On("GetConfig", spotifyLinksKey).Return("", false)
pdk.PDKMock.On("GetConfig", albumLineKey).Return("", false)
// Connect mocks
host.CacheMock.On("GetInt", "discord.seq.testuser").Return(int64(0), false, errors.New("not found"))