Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
otherview committed Oct 23, 2023
1 parent d914756 commit 9aad2b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tools/gateway-js/gateway-lib/gateway.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class Gateway {
if (response.status !== 200) {
throw new Error(`Failed to get userID. Status code: ${response.status}`);
}
this.userID = response.data;
// todo make further checks on the data
this.userId = response.data;
} catch (error) {
throw new Error(`Failed to get userID. ${error}`);
}
Expand Down
2 changes: 1 addition & 1 deletion tools/gateway-js/gateway-lib/gateway.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('Gateway', () => {

await gateway.join();

expect(gateway.userID).toBe('testUserID');
expect(gateway.userId).toBe('testUserID');
});

it('should throw error on unsuccessful join', async () => {
Expand Down

0 comments on commit 9aad2b3

Please sign in to comment.