feat(scanner): complete localized artifact quality checkpoint
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { isLikelyGenshinSourceName } from "../../electron/services/captureSourceClassifier";
|
||||
|
||||
describe("capture source classifier", () => {
|
||||
it.each([
|
||||
"Genshin Impact",
|
||||
"GenshinImpact",
|
||||
"Genshin",
|
||||
"YuanShen",
|
||||
"\u539f\u795e",
|
||||
])("accepts the real game title %s", (title) => {
|
||||
expect(isLikelyGenshinSourceName(title)).toBe(true);
|
||||
});
|
||||
|
||||
it.each([
|
||||
"Genshin Artifact Assistant",
|
||||
"Genshin Artifact Assistant Codex | Working",
|
||||
"docs - Genshin scanner",
|
||||
"Screen 1",
|
||||
"",
|
||||
])("rejects non-game windows containing Genshin text: %s", (title) => {
|
||||
expect(isLikelyGenshinSourceName(title)).toBe(false);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user