
package main

import (
	"github.com/stretchr/testify/assert"
	"testing"
)

func TestConfig(t *testing.T) {

	assert.NotNil(t, args, "nil config args")
	assert.NotNil(t, args.Pub, "nil pub")
	assert.NotNil(t, args.Pub.URI, "nil uri")
	assert.True(t, len(args.Pub.URI) > 0, "no uris")
	assert.NotNil(t, args.Server, "nil server")
	assert.NotNil(t, args.Server.Host, "nil host")
	assert.NotEqual(t, args.Server.Port, 0, "nil Port")
	assert.NotNil(t, args.Server.Root, "nil root")
	assert.NotNil(t, args.Server.Token, "nil root")

}
