Fix some minor things from my previous PR

See #3293
This commit is contained in:
Oliver Sand
2020-11-20 13:40:16 +01:00
parent 1550cba47b
commit 742196725f
4 changed files with 8 additions and 4 deletions
+2 -2
View File
@@ -143,8 +143,8 @@ catalog:
microsoftGraphOrg:
### Example for how to add your Microsoft Graph tenant
#providers:
# - target: https://graph.microsoft.com/v1.0/
# authority: https://login.microsoftonline.com/
# - target: https://graph.microsoft.com/v1.0
# authority: https://login.microsoftonline.com
# tenantId:
# $env: MICROSOFT_GRAPH_TENANT_ID
# clientId:
@@ -41,7 +41,6 @@ describe('MicrosoftGraphClient', () => {
afterEach(() => {
jest.resetAllMocks();
worker.resetHandlers();
});
it('should perform raw request', async () => {
@@ -129,7 +129,7 @@ export class MicrosoftGraphClient {
const photos = result.value as MicrosoftGraph.ProfilePhoto[];
let selectedPhoto: MicrosoftGraph.ProfilePhoto | undefined = undefined;
// Find the biggest picture that is small than the max size
// Find the biggest picture that is smaller than the max size
for (const p of photos) {
if (
!selectedPhoto ||
@@ -17,3 +17,8 @@ export { MicrosoftGraphClient } from './client';
export type { MicrosoftGraphProviderConfig } from './config';
export { readMicrosoftGraphConfig } from './config';
export { readMicrosoftGraphOrg } from './read';
export {
MICROSOFT_GRAPH_GROUP_ID_ANNOTATION,
MICROSOFT_GRAPH_TENANT_ID_ANNOTATION,
MICROSOFT_GRAPH_USER_ID_ANNOTATION,
} from './constants';