Fix failing unit tests

This commit is contained in:
Pijus Kamandulis 2020-01-26 20:11:27 +02:00
parent cd2f2d818b
commit 18c745aaba
1 changed files with 2 additions and 1 deletions

View File

@ -47,12 +47,13 @@ func TestGetUploadID(t *testing.T) {
func TestWriteToFile(t *testing.T) {
tu := testUtil.TestUtil{T: t}
expected := "{\"url\":\"some_url\",\"shareLink\":\"some_share_link\",\"caption\":\"some_caption\",\"sound\":{\"title\":\"some_title\",\"link\":\"some_link\"}}"
expected := "{\"url\":\"some_url\",\"shareLink\":\"some_share_link\",\"caption\":\"some_caption\",\"uploader\":\"some.uploader\",\"sound\":{\"title\":\"some_title\",\"link\":\"some_link\"}}"
filePath := "test_file.txt"
upload := Upload{
URL: "some_url",
Caption: "some_caption",
ShareLink: "some_share_link",
Uploader: "some.uploader",
Sound: Sound{
Link: "some_link",
Title: "some_title",