Create comment and flair directories in testdata/
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
parent
d0da7c3c2d
commit
8541c81438
5 changed files with 4 additions and 4 deletions
|
@ -42,7 +42,7 @@ func TestCommentService_Submit(t *testing.T) {
|
||||||
setup()
|
setup()
|
||||||
defer teardown()
|
defer teardown()
|
||||||
|
|
||||||
blob, err := readFileContents("testdata/comment-submit-edit.json")
|
blob, err := readFileContents("testdata/comment/submit-or-edit.json")
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
|
|
||||||
mux.HandleFunc("/api/comment", func(w http.ResponseWriter, r *http.Request) {
|
mux.HandleFunc("/api/comment", func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
@ -70,7 +70,7 @@ func TestCommentService_Edit(t *testing.T) {
|
||||||
setup()
|
setup()
|
||||||
defer teardown()
|
defer teardown()
|
||||||
|
|
||||||
blob, err := readFileContents("testdata/comment-submit-edit.json")
|
blob, err := readFileContents("testdata/comment/submit-or-edit.json")
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
|
|
||||||
mux.HandleFunc("/api/editusertext", func(w http.ResponseWriter, r *http.Request) {
|
mux.HandleFunc("/api/editusertext", func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
|
@ -44,7 +44,7 @@ func TestFlairService_GetFlairs(t *testing.T) {
|
||||||
setup()
|
setup()
|
||||||
defer teardown()
|
defer teardown()
|
||||||
|
|
||||||
blob, err := readFileContents("testdata/flairs.json")
|
blob, err := readFileContents("testdata/flair/flairs.json")
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
|
|
||||||
mux.HandleFunc("/r/subreddit/api/user_flair", func(w http.ResponseWriter, r *http.Request) {
|
mux.HandleFunc("/r/subreddit/api/user_flair", func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
@ -61,7 +61,7 @@ func TestFlairService_GetFlairsV2(t *testing.T) {
|
||||||
setup()
|
setup()
|
||||||
defer teardown()
|
defer teardown()
|
||||||
|
|
||||||
blob, err := readFileContents("testdata/flairs-v2.json")
|
blob, err := readFileContents("testdata/flair/flairs-v2.json")
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
|
|
||||||
mux.HandleFunc("/r/subreddit/api/user_flair_v2", func(w http.ResponseWriter, r *http.Request) {
|
mux.HandleFunc("/r/subreddit/api/user_flair_v2", func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
Loading…
Reference in a new issue