mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-07 08:52:17 +02:00
fix mocking the client session
This commit is contained in:
parent
1a561fa0fd
commit
194a96417b
23256
src/mocks/data/system-client-session.json
Normal file
23256
src/mocks/data/system-client-session.json
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
import { randInt } from "#app/utils.js";
|
||||
import { http, HttpResponse } from "msw";
|
||||
// import saveData from "./assets/save-data.json";
|
||||
import systemClientSession from "./data/system-client-session.json";
|
||||
|
||||
export const handlers = [
|
||||
http.post("https://api.pokerogue.net/account/login", async () => {
|
||||
@ -14,7 +14,7 @@ export const handlers = [
|
||||
});
|
||||
}),
|
||||
http.get("https://api.pokerogue.net/savedata/system", async () => {
|
||||
return HttpResponse.json({});
|
||||
return HttpResponse.json(systemClientSession);
|
||||
}),
|
||||
http.get("https://api.pokerogue.net/savedata/session", async () => {
|
||||
return HttpResponse.text();
|
||||
|
Loading…
Reference in New Issue
Block a user