mirror of
https://github.com/neon443/StickerSlack.git
synced 2026-03-11 05:19:13 +00:00
fix crash when the fetched db doesnt exist added loadremoteDB to asyncly fetch remotedb fixed Tasks not running on background threads remove expiration from slackresponse emoji.uiid starts out as emoji.id added filtering emojis test hopefully optimised the display of images checking if its local imessage extension ios 15+ remove the "hii!!" and "hello world" from the emojji picker
36 lines
799 B
Swift
36 lines
799 B
Swift
//
|
|
// StickerSlackTests.swift
|
|
// StickerSlackTests
|
|
//
|
|
// Created by neon443 on 29/10/2025.
|
|
//
|
|
|
|
import Testing
|
|
|
|
struct StickerSlackTests {
|
|
var hoarder = EmojiHoarder()
|
|
|
|
@Test func stickerConversion() async throws {
|
|
// Write your test here and use APIs like `#expect(...)` to check expected conditions.
|
|
for emoji in hoarder.emojis {
|
|
print(emoji.sticker)
|
|
}
|
|
}
|
|
|
|
@Test func localImageURL() async throws {
|
|
for emoji in hoarder.emojis {
|
|
print(emoji.localImageURL)
|
|
}
|
|
}
|
|
|
|
@Test func filteringEmojis() async throws {
|
|
let searchQueries = ["heavysob", "yay", "afsdjk", "afhjskf", "g4", "aqua-osx", "neotunes", "", "", ""]
|
|
for query in searchQueries {
|
|
print(query)
|
|
hoarder.filteredEmojis = []
|
|
hoarder.filterEmojis(by: query)
|
|
print(hoarder.filteredEmojis.count)
|
|
}
|
|
}
|
|
}
|