mirror of
https://github.com/munki/munki.git
synced 2026-05-08 05:19:31 -05:00
Add a test for a function in shared/updatecheck/download.swift
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// downloadTests.swift
|
||||
// munkiCLItesting
|
||||
//
|
||||
// Created by Greg Neagle on 1/18/26.
|
||||
//
|
||||
|
||||
import Testing
|
||||
|
||||
struct downloadTests {
|
||||
@Test func getDownloadCachePathTests() async throws {
|
||||
#expect(
|
||||
getDownloadCachePath("http://munki.local/repo/pkgs/bar.pkg") == managedInstallsDir(subpath: "Cache/bar.pkg")
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user