adding first tests + small refactoring for tests

This commit is contained in:
Julien Neuhart
2018-04-04 15:17:04 +02:00
parent 4381504f95
commit 1564219f8b
14 changed files with 237 additions and 19 deletions

View File

@@ -26,8 +26,8 @@ type App struct {
// NewApp instantiates the application by loading the configuration from the
// gotenberg.yml file.
func NewApp(version string) (*App, error) {
c, err := config.NewAppConfig()
func NewApp(version string, configurationFilePath string) (*App, error) {
c, err := config.NewAppConfig(configurationFilePath)
if err != nil {
return nil, err
}