changeset 67 | 1ff7afce37fe |
parent 21 | 555716349f64 |
child 68 | 6252b7eea308 |
66:965586c1e3ed | 67:1ff7afce37fe |
---|---|
1 package gondole |
1 package gondole |
2 |
2 |
3 import ( |
3 import ( |
4 "testing" |
|
5 "github.com/stretchr/testify/assert" |
|
4 ) |
6 ) |
5 |
7 |
8 func TestPrepareRequest(t *testing.T) { |
|
9 g, err := NewApp("foo", nil, NoRedirect) |
|
10 assert.NoError(t, err, "no error") |
|
11 |
|
12 req := g.prepareRequest("bar") |
|
13 assert.NotNil(t, req.Headers, "not nil") |
|
14 assert.NotNil(t, req.QueryParams, "not nil") |
|
15 } |
|
16 |