mirror of
https://github.com/ZHANGTIANYAO1/teamspeak-music-bot.git
synced 2026-10-01 20:42:50 +08:00
test(spotify): guard 429 retry bound, disclaimer copy, deviceName blank-ignore, catalog mappers [whole-branch I5,m2,m3,m4]
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
d796dd48ff
commit
0914cfeb2f
3 files changed
+212
No files matched your search
@@ -104,4 +104,16 @@ describe("SPOTIFY_DISCLAIMER", () => {
|
||||
expect(SPOTIFY_DISCLAIMER).toContain("Premium");
|
||||
expect(SPOTIFY_DISCLAIMER.length).toBeGreaterThan(20);
|
||||
});
|
||||
|
||||
// The disclaimer is compliance-critical: it must keep the Premium requirement,
|
||||
// the ToS grey-area / at-your-own-risk warning, the default-off promise, and the
|
||||
// "use your own developer credentials" notion. A refactor that drops any of these
|
||||
// must fail here rather than silently shipping weakened copy.
|
||||
it("retains every compliance-critical element (Premium, ToS/risk, default-off, own credentials)", () => {
|
||||
expect(SPOTIFY_DISCLAIMER).toContain("Premium");
|
||||
expect(SPOTIFY_DISCLAIMER).toContain("灰色地带"); // grey area of Spotify's ToS
|
||||
expect(SPOTIFY_DISCLAIMER).toContain("风险自负"); // at your own risk
|
||||
expect(SPOTIFY_DISCLAIMER).toContain("默认关闭"); // disabled by default
|
||||
expect(SPOTIFY_DISCLAIMER).toContain("凭据"); // your own developer app credentials
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user