Skip to content

Commit

Permalink
Merge branch 'main' into delucis/feat/p2p
Browse files Browse the repository at this point in the history
  • Loading branch information
delucis committed Sep 8, 2021
2 parents db204ea + 218816e commit 039e64f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Expand Up @@ -12,7 +12,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 16.x]
node-version: [10.x, 12.x, 14.x, 16.8.x]

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 3 additions & 1 deletion src/lobby/client.test.ts
Expand Up @@ -90,7 +90,9 @@ describe('LobbyClient', () => {
(global as any).fetch = jest.fn(async () => ({
ok: false,
status: 404,
json: async () => ({ moreInformation: 'some helpful details' }),
clone: () => ({
json: async () => ({ moreInformation: 'some helpful details' }),
}),
}));

await expect(client.listGames()).rejects.toThrow(
Expand Down
2 changes: 1 addition & 1 deletion src/lobby/client.ts
Expand Up @@ -52,7 +52,7 @@ export class LobbyClient {
let details: any;

try {
details = await response.json();
details = await response.clone().json();
} catch {
try {
details = await response.text();
Expand Down

0 comments on commit 039e64f

Please sign in to comment.