Add diagnostic for zoom plugin (#7958)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
ef597f6fe4
Коммит
4da0257bd5
@@ -43,6 +43,20 @@ func TestPluginSetting(t *testing.T) {
|
||||
assert.Equal(t, "asd", pluginSetting(settings, "test", "qwe", "asd"))
|
||||
}
|
||||
|
||||
func TestPluginActivated(t *testing.T) {
|
||||
states := map[string]*model.PluginState{
|
||||
"foo": &model.PluginState{
|
||||
Enable: true,
|
||||
},
|
||||
"bar": &model.PluginState{
|
||||
Enable: false,
|
||||
},
|
||||
}
|
||||
assert.True(t, pluginActivated(states, "foo"))
|
||||
assert.False(t, pluginActivated(states, "bar"))
|
||||
assert.False(t, pluginActivated(states, "none"))
|
||||
}
|
||||
|
||||
func TestDiagnostics(t *testing.T) {
|
||||
th := Setup().InitBasic()
|
||||
defer th.TearDown()
|
||||
|
||||
Ссылка в новой задаче
Block a user