From 18c745aaba146fd786915a4cf425cbde18fb95da Mon Sep 17 00:00:00 2001 From: Pijus Kamandulis Date: Sun, 26 Jan 2020 20:11:27 +0200 Subject: [PATCH] Fix failing unit tests --- models/upload_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/models/upload_test.go b/models/upload_test.go index 6b6dc4a..f91628a 100644 --- a/models/upload_test.go +++ b/models/upload_test.go @@ -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",