-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,10 +25,10 @@ package sharky | |
|
||
import "testing" | ||
|
||
const KEY = "" | ||
const SECRET = "" | ||
const LOGIN = "" | ||
const PASSWORD = "" | ||
const KEY = "golang_nikolay" | ||
const SECRET = "3a27a148229e9daceb45e263646b8d8b" | ||
const LOGIN = "[email protected]" | ||
const PASSWORD = "Mukosolv@n123grooveshark" | ||
|
||
func setUp() *Sharky { | ||
return New(KEY, SECRET) | ||
|
@@ -80,3 +80,12 @@ func TestGetAlbumSongs(t *testing.T) { | |
t.Error("Failed to find album songs") | ||
} | ||
} | ||
|
||
func TestGetDoesAlbumExist(t *testing.T) { | ||
sharky := setUp() | ||
doesAlbumExist := sharky.GetDoesAlbumExist("1000") | ||
|
||
if !doesAlbumExist { | ||
t.Error("Failed to find album songs") | ||
} | ||
} |