mirror of https://github.com/pikami/tiktok-dl.git
Fix failing unit tests
This commit is contained in:
parent
cd2f2d818b
commit
18c745aaba
|
@ -47,12 +47,13 @@ func TestGetUploadID(t *testing.T) {
|
||||||
|
|
||||||
func TestWriteToFile(t *testing.T) {
|
func TestWriteToFile(t *testing.T) {
|
||||||
tu := testUtil.TestUtil{T: 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"
|
filePath := "test_file.txt"
|
||||||
upload := Upload{
|
upload := Upload{
|
||||||
URL: "some_url",
|
URL: "some_url",
|
||||||
Caption: "some_caption",
|
Caption: "some_caption",
|
||||||
ShareLink: "some_share_link",
|
ShareLink: "some_share_link",
|
||||||
|
Uploader: "some.uploader",
|
||||||
Sound: Sound{
|
Sound: Sound{
|
||||||
Link: "some_link",
|
Link: "some_link",
|
||||||
Title: "some_title",
|
Title: "some_title",
|
||||||
|
|
Loading…
Reference in New Issue