mirror of
https://github.com/retailcrm/mg-transport-core.git
synced 2024-11-21 20:56:04 +03:00
Neur0toxine
627ceae0bc
* replace old Sentry client with the new SDK * do not initialize Sentry SDK twice, correct panic processing * account prefix for panics * log errors with account context data * tests * linter fixes * removed 1.18 from available versions
28 lines
351 B
Go
28 lines
351 B
Go
package core
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func Test_GetSaasDomains(t *testing.T) {
|
|
domains := GetSaasDomains()
|
|
|
|
if domains == nil {
|
|
t.Fail()
|
|
}
|
|
|
|
assert.NotEmpty(t, domains)
|
|
}
|
|
|
|
func Test_GetBoxDomains(t *testing.T) {
|
|
domains := GetBoxDomains()
|
|
|
|
if domains == nil {
|
|
t.Fail()
|
|
}
|
|
|
|
assert.NotEmpty(t, domains)
|
|
}
|