diff options
Diffstat (limited to 'tests/nowPlaying.test.ts')
| -rw-r--r-- | tests/nowPlaying.test.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/nowPlaying.test.ts b/tests/nowPlaying.test.ts index c99ffc4..a6b116a 100644 --- a/tests/nowPlaying.test.ts +++ b/tests/nowPlaying.test.ts @@ -24,6 +24,7 @@ const game = (nonSteam = true, configured = true) => ({ appid: "123456", name: nonSteam ? "1080 Snowboarding" : "Native Game", nonSteam, + source: nonSteam ? "nonSteam" : "steam", configured, }); @@ -102,6 +103,12 @@ test("configured Steam target remains the fallback", () => { assert.equal(target?.kind, "steam"); }); +test("configured non-Steam target remains the fallback", () => { + const target = resolveNowPlayingTarget(game(true), null); + + assert.equal(target?.kind, "nonSteam"); +}); + test("unconfigured Steam target has no Now Playing controls", () => { assert.equal(resolveNowPlayingTarget(game(false, false), null), null); }); |
