mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
23 lines
389 B
Go
23 lines
389 B
Go
// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
|
|
// See License.txt for license information.
|
|
|
|
package api
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestGetLicenceConfig(t *testing.T) {
|
|
Setup()
|
|
|
|
if result, err := Client.GetClientLicenceConfig(); err != nil {
|
|
t.Fatal(err)
|
|
} else {
|
|
cfg := result.Data.(map[string]string)
|
|
|
|
if _, ok := cfg["IsLicensed"]; !ok {
|
|
t.Fatal(cfg)
|
|
}
|
|
}
|
|
}
|