(t *testing.T)
| 13 | ) |
| 14 | |
| 15 | func TestDefaultPath(t *testing.T) { |
| 16 | homeDir, err := os.UserHomeDir() |
| 17 | require.NoError(t, err) |
| 18 | |
| 19 | expectedPath := path.Join(homeDir, ".config", "auth0", "config.json") |
| 20 | |
| 21 | actualPath := defaultPath() |
| 22 | |
| 23 | assert.Equal(t, expectedPath, actualPath) |
| 24 | } |
| 25 | |
| 26 | func TestConfig_LoadFromDisk(t *testing.T) { |
| 27 | t.Run("it fails to load a non existent config file", func(t *testing.T) { |
nothing calls this directly
no test coverage detected