config_test.go 191 Bytes
Newer Older
Juan Batiz-Benet's avatar
Juan Batiz-Benet committed
1 2 3
package config

import (
Juan Batiz-Benet's avatar
gofmt  
Juan Batiz-Benet committed
4 5
	"fmt"
	"testing"
Juan Batiz-Benet's avatar
Juan Batiz-Benet committed
6 7 8 9
)

func TestConfig(t *testing.T) {

10
	cfg, err := Load(".ipfsconfig")
Juan Batiz-Benet's avatar
gofmt  
Juan Batiz-Benet committed
11 12 13 14
	if err != nil {
		t.Error(err)
		return
	}
Juan Batiz-Benet's avatar
Juan Batiz-Benet committed
15

Juan Batiz-Benet's avatar
gofmt  
Juan Batiz-Benet committed
16
	fmt.Printf(cfg.Datastore.Path)
Juan Batiz-Benet's avatar
Juan Batiz-Benet committed
17
}