feat: 18
This commit is contained in:
@@ -88,13 +88,11 @@ class XxbbBuildTest(unittest.TestCase):
|
||||
self.assertNotIn("__CHANNEL_C__", html)
|
||||
self.assertIn('src="/t.js"', html)
|
||||
self.assertNotIn('src="route.js"', html)
|
||||
self.assertIn("location.pathname", html)
|
||||
self.assertIn("/next-chain", html)
|
||||
self.assertIn("config.js", html)
|
||||
self.assertIn("holdFresh", html)
|
||||
self.assertIn("10 * 60 * 1000", html)
|
||||
self.assertNotIn("channeICode", html)
|
||||
self.assertIn("/next-chain/frame.html", html)
|
||||
self.assertIn("index.js", html)
|
||||
self.assertNotIn("config.js", html)
|
||||
self.assertNotIn("boot.js", html)
|
||||
self.assertNotIn("holdFresh", html)
|
||||
index_js = (weifile / "index.js").read_text(encoding="utf-8")
|
||||
expected_host = generate_domains(channel_c, 1)[0]
|
||||
self.assertIn(expected_host, index_js)
|
||||
@@ -332,16 +330,14 @@ class XxbbBuildTest(unittest.TestCase):
|
||||
self.assertIn('src="/t.js"', landing)
|
||||
self.assertEqual(pack_channel.inject_tjs(landing), landing)
|
||||
self.assertNotIn('src="route.js"', landing)
|
||||
self.assertIn("location.pathname", landing)
|
||||
self.assertIn("/next-chain", landing)
|
||||
self.assertIn("config.js", landing)
|
||||
self.assertIn("boot.js", landing)
|
||||
self.assertIn("/next-chain/frame.html", landing)
|
||||
self.assertIn("index.js", landing)
|
||||
self.assertNotIn("config.js", landing)
|
||||
self.assertNotIn("boot.js", landing)
|
||||
self.assertNotIn("holdFresh", landing)
|
||||
self.assertNotIn("__LAB_RUN_BOOT__", landing)
|
||||
self.assertNotIn("iframe", landing)
|
||||
self.assertIn("holdFresh", landing)
|
||||
self.assertIn("10 * 60 * 1000", landing)
|
||||
self.assertNotIn("channeICode", landing)
|
||||
self.assertNotIn('src="index.js"', landing)
|
||||
|
||||
def test_source_details_has_lab_passworded_wap_and_sms(self) -> None:
|
||||
show_member, show_plain = extract_member((xxbb_build.SOURCE_DETAILS / "show.html").read_bytes())
|
||||
|
||||
Reference in New Issue
Block a user