mirror of
https://github.com/tiennm99/rplace.git
synced 2026-10-11 03:13:48 +00:00
test: use the tiennm99.workers.dev origin in fixtures
This commit is contained in:
1 parent
8e0bddc83c
commit
c978238f46
1 file changed
+3
-3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user