补强静态发布安全边界
This commit is contained in:
@@ -221,7 +221,7 @@ describe('device preview Host API route', () => {
|
||||
it('keeps the legacy runtime alias as a one-release fallback', async () => {
|
||||
vi.stubGlobal('fetch', vi.fn().mockResolvedValueOnce(new Response(
|
||||
JSON.stringify(matchingRemotePayload({
|
||||
project: { play_url: null, runtime_url: '/apps/runtime-fallback/' },
|
||||
project: { play_url: null, runtime_url: '/apps/planet-game/' },
|
||||
})),
|
||||
{ status: 200 },
|
||||
)));
|
||||
@@ -237,7 +237,7 @@ describe('device preview Host API route', () => {
|
||||
expect(response.json()).toMatchObject({
|
||||
preview: {
|
||||
state: 'ready',
|
||||
launchUrl: 'https://square.nianxx.cn/apps/runtime-fallback/',
|
||||
launchUrl: 'https://square.nianxx.cn/apps/planet-game/',
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user