-
Notifications
You must be signed in to change notification settings - Fork 0
/
post_test.go
37 lines (32 loc) · 1.02 KB
/
post_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
//
// ______ _ _ _ __ _ _ ____ ___
// | ____| | | | | | |/ _| | | | | |___ \ / _ \
// | |__ __ _| |_| |__ __ _| | |_ __ _| |_| |__ __) | | | |
// | __/ _` | __| '_ \ / _` | | _/ _` | __| '_ \ |__ <| | | |
// | | | (_| | |_| | | | (_| | | || (_| | |_| | | |___) | |_| |
// |_| \__,_|\__|_| |_|\__,_|_|_| \__,_|\__|_| |_|____/ \___/
//
// Written by Fathalfath30.
// Email : fathalfath30@gmail.com
// Follow me on:
// Github : https://github.com/fathalfath30
// Gitlab : https://gitlab.com/Fathalfath30
//
*/
package goquest_test
import (
"github.com/fathalfath30/goquest"
"github.com/fathalfath30/goquest/testdata"
)
func (ts *GoQuesTestSuite) Test_Post() {
gq, err := goquest.New(testdata.ValidSampleBaseUrl, &goquest.Config{
BaseUrl: testdata.ValidSampleBaseUrl,
Client: testdata.ValidHttpOkJson(ts.t),
})
ts.Require().Nil(err)
ts.Require().NotNil(gq)
actual, err := gq.Post(ts.ctx, testdata.ValidSampleEndpoint, nil)
ts.Require().Nil(err)
ts.Require().NotNil(actual)
}