Skip to content

Commit

Permalink
remove unused import, removed commneted out code, and add return types
Browse files Browse the repository at this point in the history
  • Loading branch information
mgamis-msft committed Jan 16, 2025
1 parent 2e3f267 commit 52d8017
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
11 changes: 1 addition & 10 deletions client/src/components/teams/TeamsMeetingExperience.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT license.

import { createAzureCommunicationCallWithChatAdapterFromClients } from '@azure/communication-react';
import { prettyDOM, render } from '@testing-library/react';
import { render } from '@testing-library/react';
import { PostCallConfig } from '../../models/ConfigModel';
import * as GetTeamsMeetingLink from '../../utils/GetMeetingLink';
import {
Expand Down Expand Up @@ -87,15 +87,6 @@ describe('TeamsMeetingExperience', () => {
await runFakeTimers();
const callWithChatComposites = meetingExperience.queryAllByTestId('meeting-composite');
expect(callWithChatComposites.length).toBe(1);
// expect(callWithChatComposites[0].props().locale?.strings.call.lobbyScreenWaitingToBeAdmittedTitle).toBe(
// waitingTitle
// );
// expect(callWithChatComposites.first().props().locale?.strings.call.lobbyScreenWaitingToBeAdmittedMoreDetails).toBe(
// waitingSubtitle
// );
// expect(callWithChatComposites.first().props().icons?.LobbyScreenConnectingToCall).toBeDefined();
// expect(callWithChatComposites.first().props().icons?.LobbyScreenWaitingToBeAdmitted).toBeDefined();
// expect(callWithChatComposites.first().props().formFactor).toEqual('desktop');
});

it('sets the formFactor to mobile in the CallWithChatComposite', async () => {
Expand Down
5 changes: 4 additions & 1 deletion server/src/controllers/roomsController.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('roomsController', () => {
const expectedPresenterId = 'communicationUserId-presenter';
const expectedAttendeeId = 'communicationUserId-attendee';

function createPartipantsIterator() {
function createPartipantsIterator(): Iterable<RoomParticipant> {
let nextIndex = 0;
const participants = [
{
Expand All @@ -49,6 +49,9 @@ describe('roomsController', () => {
return result;
}
return { value: undefined, done: true };
},
[Symbol.iterator]: function () {
return this;
}
};
return rangeIterator;
Expand Down
2 changes: 1 addition & 1 deletion server/src/controllers/roomsController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export const getToken = (identityClient: CommunicationIdentityClient, roomsClien
}
};

async function toArray(asyncIterator) {
async function toArray(asyncIterator): Promise<RoomParticipant[]> {
const arr: RoomParticipant[] = [];
let result = await asyncIterator.next();
while (result.value) {
Expand Down

0 comments on commit 52d8017

Please sign in to comment.