Create comment and flair directories in testdata/

Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
Vartan Benohanian 2020-07-29 10:58:41 -04:00
parent d0da7c3c2d
commit 8541c81438
5 changed files with 4 additions and 4 deletions

View file

@ -42,7 +42,7 @@ func TestCommentService_Submit(t *testing.T) {
setup()
defer teardown()
blob, err := readFileContents("testdata/comment-submit-edit.json")
blob, err := readFileContents("testdata/comment/submit-or-edit.json")
assert.NoError(t, err)
mux.HandleFunc("/api/comment", func(w http.ResponseWriter, r *http.Request) {
@ -70,7 +70,7 @@ func TestCommentService_Edit(t *testing.T) {
setup()
defer teardown()
blob, err := readFileContents("testdata/comment-submit-edit.json")
blob, err := readFileContents("testdata/comment/submit-or-edit.json")
assert.NoError(t, err)
mux.HandleFunc("/api/editusertext", func(w http.ResponseWriter, r *http.Request) {

View file

@ -44,7 +44,7 @@ func TestFlairService_GetFlairs(t *testing.T) {
setup()
defer teardown()
blob, err := readFileContents("testdata/flairs.json")
blob, err := readFileContents("testdata/flair/flairs.json")
assert.NoError(t, err)
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()
defer teardown()
blob, err := readFileContents("testdata/flairs-v2.json")
blob, err := readFileContents("testdata/flair/flairs-v2.json")
assert.NoError(t, err)
mux.HandleFunc("/r/subreddit/api/user_flair_v2", func(w http.ResponseWriter, r *http.Request) {