(t *testing.T)
| 6 | ) |
| 7 | |
| 8 | func Test_LoadConfig(t *testing.T) { |
| 9 | config, err := gin.LoadConfig("test_fixtures/config.json") |
| 10 | |
| 11 | expect(t, err, nil) |
| 12 | expect(t, config.Port, 5678) |
| 13 | expect(t, config.ProxyTo, "http://localhost:3000") |
| 14 | } |
| 15 | |
| 16 | func Test_LoadConfig_WithNonExistantFile(t *testing.T) { |
| 17 | _, err := gin.LoadConfig("im/not/here.json") |