summaryrefslogtreecommitdiff
path: root/tests/gameTargets.test.ts
diff options
context:
space:
mode:
authorxXJSONDeruloXx <danielhimebauch@gmail.com>2026-09-11 16:48:35 -0400
committerxXJSONDeruloXx <danielhimebauch@gmail.com>2026-09-11 16:48:35 -0400
commit81feb03288166755545401b9df2ff2c9bc3ae7d7 (patch)
tree7fc6799626519e5b01fb137f5440c99fda5faca7 /tests/gameTargets.test.ts
parentf185d26f4d37894183cdfa8c3e6ffc718cb3b103 (diff)
downloaddecky-lsfg-vk-81feb03288166755545401b9df2ff2c9bc3ae7d7.tar.gz
decky-lsfg-vk-81feb03288166755545401b9df2ff2c9bc3ae7d7.zip
handle flatpak grey, id proton and exclusionschore/migrate
Diffstat (limited to 'tests/gameTargets.test.ts')
-rw-r--r--tests/gameTargets.test.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/gameTargets.test.ts b/tests/gameTargets.test.ts
index 9896d76..2eb8b7e 100644
--- a/tests/gameTargets.test.ts
+++ b/tests/gameTargets.test.ts
@@ -39,3 +39,12 @@ test("unknown configured profiles are visible in both source tabs", () => {
assert.deepEqual(steamTargets.map((target) => target.appid).sort(), ["123", "456"]);
assert.deepEqual(nonSteamTargets.map((target) => target.appid).sort(), ["456", "789"]);
});
+
+test("direct Flatpak shortcuts remain non-Steam targets", () => {
+ const targets = mergeGameTargets([], [
+ { appid: "123", name: "Flatpak shortcut", nonSteam: true, isFlatpakShortcut: true },
+ ], []);
+
+ assert.equal(targets[0].source, "nonSteam");
+ assert.equal(targets[0].isFlatpakShortcut, true);
+});