Skip to content

Commit

Permalink
fix frontend test and context_test
Browse files Browse the repository at this point in the history
  • Loading branch information
ReDBrother committed Oct 23, 2023
1 parent 5b33203 commit 4669344
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Gon from 'gon';
import messageTypes from '../config/messageTypes';
import rooms from '../config/rooms';

const currentUserId = Gon.getAsset('current_user').id;
const currentUserId = Gon.getAsset('current_user')?.id;

export const isGeneralRoom = room => room.name === rooms.general.name;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ defmodule Codebattle.Game.ContextTest do
Game.Context.create_game(%{state: "playing", players: [user1, user2], level: "easy"})

assert_received %Codebattle.PubSub.Message{
event: "game:updated",
event: "game:created",
topic: "games",
payload: _
}
Expand Down

0 comments on commit 4669344

Please sign in to comment.