mirror of
https://github.com/neon443/StickerSlack.git
synced 2026-03-11 05:19:13 +00:00
added deleteAllStickers
fix crash when the uiimage isnt valid swift 6 in the messages extension added fakedownloadallstickers test added deleteallimages test
This commit is contained in:
@@ -131,4 +131,24 @@ struct PerformanceTests {
|
||||
try! await doThing(on: emoji, i: &i)
|
||||
}
|
||||
}
|
||||
|
||||
@Test func fakeDownloadAllStickers() async throws {
|
||||
await withDiscardingTaskGroup { group in
|
||||
for emoji in hoarder.emojis {
|
||||
group.addTask {
|
||||
try! Data().write(to: emoji.localImageURL)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Test func deleteAllImages() async throws {
|
||||
await withDiscardingTaskGroup { group in
|
||||
for emoji in hoarder.emojis {
|
||||
group.addTask {
|
||||
emoji.deleteImage()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user