Add some tests...

Not very efficient to make this after development, but at least I can
ensure that some basic stuffs are checked.
This commit is contained in:
2022-02-20 15:23:55 +01:00
parent e2f9ab97b9
commit 14587e032b
5 changed files with 283 additions and 15 deletions

View File

@@ -14,6 +14,7 @@ func TestDownloadLatestRelease(t *testing.T) {
// change "exe" to /tmp/test-katenary
exe = "/tmp/test-katenary"
defer os.Remove(exe)
// Now call the CheckLatestVersion function
version, assets, err := CheckLatestVersion()