James Tombleson
ff4075383a
* added a route to delete subscriptions based on the ID given * added a new route to find a record based on the name and source * added a route to query Discord Web Hooks by Server and Channel names * tested the endpoints and they seem good to test more * updated some routes for subscriptions and formatted files * removed debug file * fixing some panic calls * swag
23 lines
355 B
Go
23 lines
355 B
Go
package config_test
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/jtom38/newsbot/collector/services/config"
|
|
)
|
|
|
|
func TestNewClient(t *testing.T) {
|
|
config.New()
|
|
}
|
|
|
|
func TestGetConfigExpectNull(t *testing.T) {
|
|
cc := config.New()
|
|
os.Setenv(config.REDDIT_PULL_HOT, "")
|
|
res := cc.GetConfig(config.REDDIT_PULL_HOT)
|
|
if res != "" {
|
|
panic("expected blank")
|
|
}
|
|
|
|
}
|