test: use the tiennm99.workers.dev origin in fixtures

This commit is contained in:
tiennm99 committed 2026-10-08 10:03:54 +07:00
1 parent 8e0bddc83c
commit c978238f46
1 file changed
+3 -3
+3 -3
View File
@@ -202,7 +202,7 @@ describe('GET /api/ws', () => {
});
const restrictedEnv = {
...env,
ALLOWED_ORIGINS: 'https://rplace.miti99.workers.dev',
ALLOWED_ORIGINS: 'https://rplace.tiennm99.workers.dev',
};
const res = await app.fetch(req, restrictedEnv);
expect(res.status).toBe(403);
@@ -215,12 +215,12 @@ describe('GET /api/ws', () => {
const req = new Request('http://localhost/api/ws', {
headers: {
Upgrade: 'websocket',
Origin: 'https://rplace.miti99.workers.dev',
Origin: 'https://rplace.tiennm99.workers.dev',
},
});
const restrictedEnv = {
...env,
ALLOWED_ORIGINS: 'https://rplace.miti99.workers.dev',
ALLOWED_ORIGINS: 'https://rplace.tiennm99.workers.dev',
};
const res = await app.fetch(req, restrictedEnv);
expect(res.status).toBe(200);